Skip to content

Commit 9ba6732

Browse files
committed
chore(ci): check source code beforehand
1 parent a9052f5 commit 9ba6732

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/pre-release.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,18 @@ jobs:
5353
artifact_name: ${{ steps.seal_source_code.outputs.artifact_name }}
5454
RELEASE_VERSION: ${{ steps.release_version.outputs.RELEASE_VERSION }}
5555
steps:
56+
# NOTE: Different from prod release, we need both poetry and source code available in earlier steps to bump and verify.
57+
5658
# We use a pinned version of Poetry to be certain it won't modify source code before we create a hash
5759
- name: Install poetry
5860
run: |
5961
pipx install git+https://github.com/python-poetry/poetry@68b88e5390720a3dd84f02940ec5200bfce39ac6 # v1.5.0
6062
pipx inject poetry git+https://github.com/monim67/poetry-bumpversion@315fe3324a699fa12ec20e202eb7375d4327d1c4 # v0.3.1
6163
64+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
65+
with:
66+
ref: ${{ env.RELEASE_COMMIT }}
67+
6268
- name: Export release version
6369
id: release_version
6470
run: |
@@ -77,10 +83,6 @@ jobs:
7783
env:
7884
RELEASE_VERSION: ${{ steps.release_version.outputs.RELEASE_VERSION}}
7985

80-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
81-
with:
82-
ref: ${{ env.RELEASE_COMMIT }}
83-
8486
- name: Bump package version
8587
id: versioning
8688
run: poetry version "${RELEASE_VERSION}"

0 commit comments

Comments
 (0)