File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -24,10 +24,15 @@ jobs:
24
24
- name : " Create release output"
25
25
run : echo '🎬 Release process for version ${{ env.RELEASE_VERSION }} started by @${{ github.triggering_actor }}' >> $GITHUB_STEP_SUMMARY
26
26
27
- - uses : mongodb-labs/drivers-github-tools/secure- checkout@v2
27
+ - uses : actions/ checkout@v4
28
28
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
31
36
32
37
- name : " Store version numbers in env variables"
33
38
# The awk command to increase the version number was copied from
55
60
56
61
- name : " Ensure current snapshot version matches release version"
57
62
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
59
64
if [[ $? != 0 ]]; then
60
65
echo '❌ Release failed: version in gradle.properties is not a snapshot for release version ${{ inputs.version }}' >> $GITHUB_STEP_SUMMARY
61
66
exit 1
You can’t perform that action at this time.
0 commit comments