mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-09 05:25:14 +09:00
fix(ci): pass app token to Publish draft release step
The Publish draft release step used the workflow's default GITHUB_TOKEN, which does not return draft releases from listReleases — so the script failed with "Draft release for vX.Y.Z not found" and every release tag had to be undrafted manually. This same bug was fixed once before in4db55ac5eb([ci] Add Github token to fetch draft releases) by adding github-token: GH_PAT to the listing step. It was lost during the refactor in66a756b6that combined the separate listing/flags/publish steps into a single Publish step, and not restored whenf96b2da1migrated remaining github-token usages from GH_PAT to the cozystack-ci App token. Add github-token: app-token.outputs.token to the merged step so it shares the same auth as the rest of the workflow. Assisted-By: Claude <noreply@anthropic.com> Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com> (cherry picked from commit7d2fe2f7d1)
This commit is contained in:
1 parent
b74e5dd8c8
commit
58a00168bb
1 file changed
+1
@@ -122,6 +122,7 @@ jobs:
|
||||
- name: Publish draft release
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
github-token: ${{ steps.app-token.outputs.token }}
|
||||
script: |
|
||||
const tag = '${{ steps.get_tag.outputs.tag }}';
|
||||
const m = tag.match(/^v(\d+\.\d+\.\d+)(-(?:alpha|beta|rc)\.\d+)?$/);
|
||||
|
||||
Reference in new issue
Block a user