Skip to content

Commit f632d11

Browse files
committed
ci: Notify closed issues using environment API token
1 parent 55a9f85 commit f632d11

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

.github/workflows/release.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,26 @@ jobs:
119119
tag: ${{ needs.bump.outputs.version }}
120120
body: ${{ needs.bump.outputs.changelog }}
121121

122-
- name: Notify
123-
if: ${{ needs.bump.outputs.issues-closed }}
124-
uses: alorel-actions/semantic-release-lite/notify@v0
122+
notify-issues:
123+
name: Release (Notify)
124+
runs-on: ubuntu-latest
125+
environment: github
126+
needs: [ release-github, bump ]
127+
if: ${{ needs.bump.outputs.issues-closed }}
128+
steps:
129+
- uses: actions/checkout@v4
130+
name: Checkout
131+
with:
132+
fetch-depth: 1
133+
ref: ${{ needs.bump.outputs.commit }}
134+
token: ${{ secrets.GH_TOKEN }}
135+
136+
- name: Git identity
137+
uses: alorel-actions/git-ident@v1
138+
139+
- uses: alorel-actions/semantic-release-lite/notify@v0
125140
with:
126141
tag: ${{ needs.bump.outputs.version }}
127142
issues: ${{ needs.bump.outputs.issues-closed }}
128143
allow-out-of-sync: true
129-
gh-token: ${{ github.token }}
144+
gh-token: ${{ secrets.GH_TOKEN }}

0 commit comments

Comments
 (0)