Skip to content

Commit 39452b9

Browse files
Replace ncipollo/release-action by gh release create (#2405)
Avoid an extra dependency. Identified with `zizmor`'s [1] new (v1.23.0) "superfluous-actions" rule. [1]: https://github.com/zizmorcore/zizmor
1 parent 2868d94 commit 39452b9

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

.github/workflows/gha.sum

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ asdf-vm/actions@v4.0.0 eGZn+tf2SoEwu2pptGEHoXu4mnO/zJHvqWldHAhWmtM=
1515
ericcornelissen/tool-versions-update-action@v2.2.0 hEKQk7PtggFp4V/aUnbNy7/VbpQsYTUurzocvHKI3Qw=
1616
github/codeql-action@b20883b0cd1f46c72ae0ba6d1090936928f9fa30 cKk/jC+AF7SIc9AV9Pk3XEbI+kND9NsY4T1AfQQkPzY=
1717
github/codeql-action@v4.32.0 cKk/jC+AF7SIc9AV9Pk3XEbI+kND9NsY4T1AfQQkPzY=
18-
ncipollo/release-action@b7eabc95ff50cbeeedec83973935c8f306dfcd0b x49H6hPD8AWXRzcWpr1XIT5RoPcHJ/4QprD1vkG7ZnA=
1918
peter-evans/create-pull-request@84ae59a2cdc2258d6fa0732dd66352dddae2a412 OLxtm/mOdNIRqAWWLjgrnEjNt0OL1Lak9MN9hbOXQNc=
2019
peter-evans/create-pull-request@v8.0.0 Luap3+Di9HmjSpYTqM9ZzZHk1DBFrDgIwuguQ2Bty1k=
2120
stefanzweifel/git-auto-commit-action@28e16e81777b558cc906c8750092100bbb34c5e3 g4PCgPHeeaVpSPTRcoBKth4QnrZGGQXwBEoEAsAXivs=

.github/workflows/publish.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,20 @@ jobs:
8484
contents: write # To create a GitHub Release
8585
steps:
8686
- name: Create GitHub release
87-
uses: ncipollo/release-action@b7eabc95ff50cbeeedec83973935c8f306dfcd0b # v1.20.0
88-
with:
89-
tag: ${{ needs.check.outputs.version }}
90-
name: Release ${{ needs.check.outputs.version }}
91-
body: ${{ needs.check.outputs.release_notes }}
92-
draft: false
93-
prerelease: false
87+
env:
88+
GH_TOKEN: ${{ github.token }}
89+
RELEASE_NOTES: ${{ needs.check.outputs.release_notes }}
90+
REPOSITORY: ${{ github.repository }}
91+
VERSION: ${{ needs.check.outputs.version }}
92+
run: |
93+
gh release create "${VERSION}" \
94+
--repo "${REPOSITORY}" \
95+
--title="Release ${VERSION}" \
96+
--notes="${RELEASE_NOTES}" \
97+
--draft=false \
98+
--latest=true \
99+
--generate-notes=false \
100+
--prerelease=false
94101
npm:
95102
name: npm
96103
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)