Skip to content

Commit 66d95b2

Browse files
authored
[skip ci] Update release workflow to use dynamic tag names
1 parent 039948e commit 66d95b2

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ jobs:
129129
- name: "📤 Upload grails wrapper ZIP"
130130
uses: softprops/action-gh-release@v2
131131
with:
132+
tag_name: ${{ github.event.release.tag_name }}
132133
files: |
133134
grails-wrapper/build/distributions/apache-grails-wrapper-${{ steps.release_version.outputs.value }}-bin.zip
134135
grails-wrapper/build/distributions/apache-grails-wrapper-${{ steps.release_version.outputs.value }}-bin.zip.sha512
@@ -150,6 +151,7 @@ jobs:
150151
- name: "📤 Upload CLI ZIP"
151152
uses: softprops/action-gh-release@v2
152153
with:
154+
tag_name: ${{ github.event.release.tag_name }}
153155
files: |
154156
grails-forge/grails-cli/build/distributions/apache-grails-${{ steps.release_version.outputs.value }}-bin.zip
155157
grails-forge/grails-cli/build/distributions/apache-grails-${{ steps.release_version.outputs.value }}-bin.zip.sha512
@@ -241,6 +243,7 @@ jobs:
241243
- name: "Upload combined checksums"
242244
uses: softprops/action-gh-release@v2
243245
with:
246+
tag_name: ${{ github.event.release.tag_name }}
244247
files: build/CHECKSUMS.txt
245248
env:
246249
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -253,6 +256,7 @@ jobs:
253256
- name: "Upload combined published artifacts"
254257
uses: softprops/action-gh-release@v2
255258
with:
259+
tag_name: ${{ github.event.release.tag_name }}
256260
files: build/PUBLISHED_ARTIFACTS.txt
257261
env:
258262
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -261,6 +265,7 @@ jobs:
261265
- name: "Upload Build Date file"
262266
uses: softprops/action-gh-release@v2
263267
with:
268+
tag_name: ${{ github.event.release.tag_name }}
264269
files: build/BUILD_DATE.txt
265270
env:
266271
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -334,7 +339,7 @@ jobs:
334339
- name: "🚀 Upload ZIP and Signature to GitHub Release"
335340
uses: softprops/action-gh-release@v2
336341
with:
337-
tag_name: v${{ needs.publish.outputs.release_version }}
342+
tag_name: ${{ github.event.release.tag_name }}
338343
files: |
339344
apache-grails-*-src.zip
340345
apache-grails-*-src.zip.sha512
@@ -456,6 +461,7 @@ jobs:
456461
- name: "Upload Distribution SVN revision"
457462
uses: softprops/action-gh-release@v2
458463
with:
464+
tag_name: ${{ github.event.release.tag_name }}
459465
files: dev-repo/DIST_SVN_REVISION.txt
460466
env:
461467
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -472,8 +478,9 @@ jobs:
472478
run: |
473479
export DIST_SVN_REVISION=$(awk '/Last Changed Rev:/ {print $4}' dev-repo/DIST_SVN_REVISION.txt)
474480
echo "::group::Grails PMC Vote Email"
481+
echo "Subject:"
475482
echo "*************************************************"
476-
echo "Subject: [VOTE] Release Apache Grails ${VERSION}"
483+
echo "[VOTE] Release Apache Grails ${VERSION}"
477484
echo "*************************************************"
478485
echo "Body:"
479486
echo "*************************************************"
@@ -646,14 +653,13 @@ jobs:
646653
VERSION_COMMIT_ID: ${{ needs.publish.outputs.commit_hash }}
647654
PREVIOUS_VERSION: 'TODO_PREVIOUS_VERSION'
648655
run: |
649-
export DIST_SVN_REVISION=$(awk '/Last Changed Rev:/ {print $4}' dev-repo/DIST_SVN_REVISION.txt)
650-
651656
echo "::group::Announcement Email"
657+
echo "Subject:"
652658
echo "*************************************************"
653-
echo "Subject: [ANNOUNCE] Apache Grails ${VERSION}"
659+
echo "[ANNOUNCE] Apache Grails ${VERSION}"
654660
echo "*************************************************"
655661
echo "Body:"
656662
echo "*************************************************"
657-
cat grails-core/.github/vote_templates/announce.txt | envsubst
663+
cat .github/vote_templates/announce.txt | envsubst
658664
echo "*************************************************"
659665
echo "::endgroup::"

0 commit comments

Comments
 (0)