Skip to content

Commit e27d704

Browse files
committed
Fix release validation.
1 parent a6d7d1d commit e27d704

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,15 @@ jobs:
2424
- name: "Create release output"
2525
run: echo '🎬 Release process for version ${{ env.RELEASE_VERSION }} started by @${{ github.triggering_actor }}' >> $GITHUB_STEP_SUMMARY
2626

27-
- uses: mongodb-labs/drivers-github-tools/secure-checkout@v2
27+
- uses: actions/checkout@v4
2828
with:
29-
app_id: ${{ vars.APP_ID }}
30-
private_key: ${{ secrets.APP_PRIVATE_KEY }}
29+
ref: ${{ github.ref }}
30+
fetch-depth: "1"
31+
submodules: "false"
32+
33+
- name: Store GitHub token in environment
34+
run: echo "GH_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> "$GITHUB_ENV"
35+
shell: bash
3136

3237
- name: "Store version numbers in env variables"
3338
# The awk command to increase the version number was copied from
@@ -55,7 +60,7 @@ jobs:
5560
5661
- name: "Ensure current snapshot version matches release version"
5762
run: |
58-
grep -q "version='${{ env.RELEASE_VERSION_WITHOUT_SUFFIX }}-SNAPSHOT'" gradle.properties
63+
grep -q "version=${{ env.RELEASE_VERSION_WITHOUT_SUFFIX }}-SNAPSHOT" gradle.properties
5964
if [[ $? != 0 ]]; then
6065
echo '❌ Release failed: version in gradle.properties is not a snapshot for release version ${{ inputs.version }}' >> $GITHUB_STEP_SUMMARY
6166
exit 1

0 commit comments

Comments
 (0)