cozystack/.github
Myasnikov Daniil 7d2fe2f7d1
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 in 4db55ac5eb ([ci] Add Github
token to fetch draft releases) by adding github-token: GH_PAT to the
listing step. It was lost during the refactor in 66a756b6 that combined
the separate listing/flags/publish steps into a single Publish step,
and not restored when f96b2da1 migrated 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>
2026-04-29 15:47:41 +05:00
..
ISSUE_TEMPLATE chore(ci): adopt CNCF/k8s label conventions 2026-04-27 03:15:09 +03:00
workflows fix(ci): pass app token to Publish draft release step 2026-04-29 15:47:41 +05:00
CODEOWNERS chore(maintenance): add @myasnikovdaniil to CODEOWNERS 2026-04-21 14:31:07 +05:00
labels.yml chore(ci): normalize hex color case in labels.yml 2026-04-27 03:30:09 +03:00
PULL_REQUEST_TEMPLATE.md docs(maintenance): mirror illustrative-scopes wording in PR template 2026-04-27 11:20:13 +03:00