Skip to content

Commit

Permalink
chore(ci): check source code beforehand
Browse files Browse the repository at this point in the history
  • Loading branch information
heitorlessa committed Jun 17, 2024
1 parent a9052f5 commit 9ba6732
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,18 @@ jobs:
artifact_name: ${{ steps.seal_source_code.outputs.artifact_name }}
RELEASE_VERSION: ${{ steps.release_version.outputs.RELEASE_VERSION }}
steps:
# NOTE: Different from prod release, we need both poetry and source code available in earlier steps to bump and verify.

# We use a pinned version of Poetry to be certain it won't modify source code before we create a hash
- name: Install poetry
run: |
pipx install git+https://github.com/python-poetry/poetry@68b88e5390720a3dd84f02940ec5200bfce39ac6 # v1.5.0
pipx inject poetry git+https://github.com/monim67/poetry-bumpversion@315fe3324a699fa12ec20e202eb7375d4327d1c4 # v0.3.1
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
ref: ${{ env.RELEASE_COMMIT }}

- name: Export release version
id: release_version
run: |
Expand All @@ -77,10 +83,6 @@ jobs:
env:
RELEASE_VERSION: ${{ steps.release_version.outputs.RELEASE_VERSION}}

- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
ref: ${{ env.RELEASE_COMMIT }}

- name: Bump package version
id: versioning
run: poetry version "${RELEASE_VERSION}"
Expand Down

0 comments on commit 9ba6732

Please sign in to comment.