Skip to content

Commit f3b29b9

Browse files
committed
ci: use GH_TOKEN in tag-latest, rename build commit prefix to ci-build:
1 parent 332cf63 commit f3b29b9

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
# Prefer GH_TOKEN secret (allows triggering downstream workflows like tag-latest)
3232
# Fall back to GITHUB_TOKEN (won't trigger other workflows)
3333
TOKEN: ${{ secrets.GH_TOKEN || github.token }}
34-
COMMIT_PREFIX: "build: "
34+
COMMIT_PREFIX: "ci-build: "
3535

3636
steps:
3737
# ── 1. Skip check: bail if the triggering commit is from this workflow ──

.github/workflows/tag-latest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
5454
- name: Create dated release (marked as latest)
5555
env:
56-
GH_TOKEN: ${{ github.token }}
56+
GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }}
5757
run: |
5858
gh release create "${{ steps.vars.outputs.dated_tag }}" \
5959
--title "${{ steps.vars.outputs.dated_tag }}" \
@@ -66,7 +66,7 @@ jobs:
6666
6767
- name: Create/update latest release (not marked as latest)
6868
env:
69-
GH_TOKEN: ${{ github.token }}
69+
GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }}
7070
run: |
7171
# Delete existing latest release if present
7272
gh release delete latest --yes 2>/dev/null || true

0 commit comments

Comments
 (0)