Skip to content

Commit 7d5d5ee

Browse files
committed
fix(ci): use workflow token for gh release
1 parent 620a633 commit 7d5d5ee

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/publish-github-release.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ jobs:
143143
144144
- name: Ensure release exists
145145
env:
146-
GH_TOKEN: ${{ steps.app_token.outputs.token || github.token }}
146+
GH_TOKEN: ${{ github.token }}
147+
GH_REPO: ${{ github.repository }}
147148
TAG: ${{ inputs.tag }}
148149
TITLE: ${{ inputs.title }}
149150
SHA: ${{ inputs.target_sha }}
@@ -187,7 +188,8 @@ jobs:
187188
- name: Update rolling release notes (commit summary)
188189
if: ${{ inputs.rolling_tag && steps.move_rolling_tag.outputs.pushed == 'true' }}
189190
env:
190-
GH_TOKEN: ${{ steps.app_token.outputs.token || github.token }}
191+
GH_TOKEN: ${{ github.token }}
192+
GH_REPO: ${{ github.repository }}
191193
TAG: ${{ inputs.tag }}
192194
TITLE: ${{ inputs.title }}
193195
SHA: ${{ inputs.target_sha }}
@@ -250,7 +252,8 @@ jobs:
250252
- name: Prune rolling release assets
251253
if: ${{ inputs.prune_assets && (!inputs.rolling_tag || steps.move_rolling_tag.outputs.pushed == 'true') }}
252254
env:
253-
GH_TOKEN: ${{ steps.app_token.outputs.token || github.token }}
255+
GH_TOKEN: ${{ github.token }}
256+
GH_REPO: ${{ github.repository }}
254257
TAG: ${{ inputs.tag }}
255258
run: |
256259
set -euo pipefail
@@ -285,7 +288,8 @@ jobs:
285288
- name: Upload assets
286289
if: ${{ (!inputs.rolling_tag || steps.move_rolling_tag.outputs.pushed == 'true') && (inputs.assets != '' || inputs.assets_dir != '') }}
287290
env:
288-
GH_TOKEN: ${{ steps.app_token.outputs.token || github.token }}
291+
GH_TOKEN: ${{ github.token }}
292+
GH_REPO: ${{ github.repository }}
289293
TAG: ${{ inputs.tag }}
290294
ASSETS: ${{ inputs.assets }}
291295
ASSETS_DIR: ${{ inputs.assets_dir }}

0 commit comments

Comments
 (0)