File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -105,6 +105,10 @@ jobs:
105105 runs-on : ubuntu-latest
106106 permissions :
107107 contents : write
108+ env :
109+ # When triggered by tag push, checkout@v5 fetches the repository in a way that
110+ # confuses `git describe`. We re-compute the package name.
111+ release_package_name : scripts-${{ github.ref_name }}.zip
108112
109113 steps :
110114 - name : Download the package
@@ -115,11 +119,9 @@ jobs:
115119
116120 - name : Re-zip for release
117121 # Work around https://github.com/actions/upload-artifact/issues/426
118- # When triggered by tag push, checkout@v5 fetches the repository in a way that
119- # confuses `git describe`. We re-compute the package name.
120122 run : |
121123 pushd release
122- zip -rv ../scripts-${{ github.ref_name }}.zip *
124+ zip -rv ../$release_package_name *
123125 popd
124126
125127 - name : Create GitHub Release
@@ -129,13 +131,13 @@ jobs:
129131 gh release create
130132 ${{ github.ref_name }}
131133 --repo ${{ github.repository }}
132- --notes '[Changelog](https://github.com/angelo-peronio/scripts /blob/${{ github.ref_name }}/CHANGELOG.md)'
134+ --notes '[Changelog](https://github.com/${{ github.repository }} /blob/${{ github.ref_name }}/CHANGELOG.md)'
133135
134136 - name : Upload package to GitHub Release
135137 env :
136138 GITHUB_TOKEN : ${{ github.token }}
137139 run : >-
138140 gh release upload
139141 ${{ github.ref_name }}
140- ${{ needs.package.outputs.package_name }}.zip
142+ $release_package_name
141143 --repo ${{ github.repository }}
You can’t perform that action at this time.
0 commit comments