Skip to content

Commit 953c74d

Browse files
fix(ci): dispatch release.yml from auto-release to bypass GITHUB_TOKEN chain limit [skip release]
1 parent f3ef4f2 commit 953c74d

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/auto-release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,17 @@ jobs:
3434
3535
- name: Create and push tag
3636
if: steps.tag_check.outputs.exists == 'false'
37+
env:
38+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3739
run: |
3840
git config user.name "github-actions[bot]"
3941
git config user.email "github-actions[bot]@users.noreply.github.com"
4042
git tag "v${{ steps.current.outputs.version }}"
4143
git push origin "v${{ steps.current.outputs.version }}"
4244
echo "Tagged v${{ steps.current.outputs.version }}"
45+
# GITHUB_TOKEN-pushed tags don't trigger other workflows.
46+
# Dispatch release.yml manually on the tag ref instead.
47+
gh workflow run release.yml --ref "v${{ steps.current.outputs.version }}"
4348
4449
- name: Skip (tag already exists)
4550
if: steps.tag_check.outputs.exists == 'true'

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Release
22
on:
33
push:
44
tags: ['v*']
5+
workflow_dispatch:
56

67
jobs:
78
# ── Build platform binaries ──────────────────────────────────────────────

0 commit comments

Comments
 (0)