File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -67,23 +67,22 @@ jobs:
67
67
env :
68
68
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
69
69
70
- - name : Commit and push Version Changes
70
+ - name : Commit and push Version Changes and Update latest tag
71
71
shell : bash
72
72
run : |
73
73
git config --global user.email "[email protected] "
74
74
git config --global user.name "GitHub Action"
75
75
git add Source/System/GameVersion.h meson.build
76
76
git commit -m "Release v${{ inputs.new_release_version }}" || echo "No changes to commit"
77
77
git push
78
- env :
79
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN}}
80
78
81
- - name : Update latest tag
82
- run : |
79
+ RELEASE_COMMIT=$(git rev-parse HEAD)
83
80
curl -X PATCH \
84
81
-H "Authorization: Bearer ${{ secrets.WORKFLOW_TOKEN }}" \
85
82
-H "Accept: application/vnd.github.v3+json" \
86
83
https://api.github.com/repos/${{ github.repository }}/git/refs/tags/${{ env.LATEST_TAG }} \
87
84
-d '{
88
- "sha": "${{ github.sha }}"
85
+ "sha": "$RELEASE_COMMIT",
89
86
}'
87
+ env :
88
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN}}
You can’t perform that action at this time.
0 commit comments