From bde281d0f3ca131695b26f28f6756dff3c7ae216 Mon Sep 17 00:00:00 2001 From: Preetam Dwivedi Date: Mon, 9 Mar 2026 22:14:13 -0700 Subject: [PATCH] ci(rebase-stack): use PAT to trigger CI on rebased stacked PRs GITHUB_TOKEN events don't trigger downstream workflows, so CI never ran after the rebase-stack workflow force-pushed branches. Switch to a PAT (STACK_REBASE_TOKEN) so the push fires the synchronize event and triggers CI. --- .github/workflows/rebase-stack.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rebase-stack.yml b/.github/workflows/rebase-stack.yml index 1aa739c1..4b12d0b9 100644 --- a/.github/workflows/rebase-stack.yml +++ b/.github/workflows/rebase-stack.yml @@ -54,11 +54,11 @@ jobs: with: # Fetch full history so rebase --onto works correctly. fetch-depth: 0 - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.STACK_REBASE_TOKEN }} - name: Rebase stacked PRs env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.STACK_REBASE_TOKEN }} MERGED_HEAD: ${{ github.event.pull_request.head.ref }} MERGED_BASE: ${{ github.event.pull_request.base.ref }} MERGED_HEAD_SHA: ${{ github.event.pull_request.head.sha }}