Skip to content

Commit 5ac916d

Browse files
committed
Fix sha256sum job
1 parent 0241ed9 commit 5ac916d

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/nightly-build.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ jobs:
120120
os: ubuntu-22.04
121121

122122
runs-on: ${{matrix.os}}
123-
123+
# Map a step output to a job output
124+
outputs:
125+
sha_short: ${{ steps.vars.outputs.sha_short }}
124126
steps:
125127
- uses: actions/checkout@v4
126128
with:
@@ -191,7 +193,7 @@ jobs:
191193
env:
192194
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
193195
run: >-
194-
gh release download ${{ github.ref_name }}
196+
gh release download nightly-${{ needs.release.outputs.sha_short }}
195197
--repo ${{ github.repository }}
196198
--pattern '*'
197199
--dir release
@@ -200,8 +202,10 @@ jobs:
200202
- name: Publish Checksums
201203
uses: softprops/[email protected]
202204
with:
203-
draft: true
205+
draft: false
206+
prerelease: true
204207
files: SHA256SUMS
208+
tag_name: nightly-${{ needs.release.outputs.sha_short }}
205209
env:
206210
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
207211

0 commit comments

Comments
 (0)