From d8475e167aaa96fc44cc2686496603656ccef10a Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Mon, 11 May 2026 17:36:41 +0200 Subject: [PATCH] tools: use different branch for tool updates on staging branches Signed-off-by: Antoine du Hamel PR-URL: https://github.com/nodejs/node/pull/63110 Reviewed-By: James M Snell Reviewed-By: Richard Lau Reviewed-By: Marco Ippolito --- .github/workflows/tools.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tools.yml b/.github/workflows/tools.yml index 638a0fc2142..59c9d4bcd46 100644 --- a/.github/workflows/tools.yml +++ b/.github/workflows/tools.yml @@ -311,7 +311,7 @@ jobs: # no-op if the base branch is already up-to-date. with: token: ${{ secrets.GH_USER_TOKEN }} - branch: actions/tools-update-${{ matrix.id }} # Custom branch *just* for this Action. + branch: actions/${{ github.ref_name == 'main' || format('{0}/', github.ref_name) }}tools-update-${{ matrix.id }} # Custom branch *just* for this Action. delete-branch: true commit-message: ${{ env.COMMIT_MSG }} labels: ${{ matrix.label }}