2323
2424 - name : Checkout Repository
2525 uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # tag=v6.0.2
26+ with :
27+ persist-credentials : false
2628
2729 - name : Parse Version from package.json
2830 id : parse
5254 steps :
5355 - name : Checkout Repository
5456 uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # tag=v6.0.2
57+ with :
58+ persist-credentials : false
5559
5660 - name : Download Artifacts
5761 uses : actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # tag=v8.0.0
@@ -72,20 +76,21 @@ jobs:
7276 - name : Update Release
7377 env :
7478 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
79+ RELEASE_VERSION : ${{ needs.read-version.outputs.version }}
7580 run : |-
7681 cat << EOF >> .github/default-release-notes.md
7782 \`\`\`text
7883 $(cat checksums.txt)
7984 \`\`\`
8085 EOF
8186
82- gh release view ${{ needs.read-version.outputs.version }} \
87+ gh release view "${RELEASE_VERSION}" \
8388 --json body --jq .body >> .github/default-release-notes.md
8489
85- gh release edit ${{ needs.read-version.outputs.version }} \
90+ gh release edit "${RELEASE_VERSION}" \
8691 --notes-file ".github/default-release-notes.md"
8792
88- gh release upload ${{ needs.read-version.outputs.version }} \
93+ gh release upload "${RELEASE_VERSION}" \
8994 --clobber \
9095 frontend-dist.zip \
9196 checksums.txt \
9499 - name : Publish Release
95100 env :
96101 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
102+ RELEASE_VERSION : ${{ needs.read-version.outputs.version }}
97103 run : |-
98- gh release edit ${{ needs.read-version.outputs.version }} \
104+ gh release edit "${RELEASE_VERSION}" \
99105 --draft=false
0 commit comments