Skip to content

Commit d8475e1

Browse files
committed
tools: use different branch for tool updates on staging branches
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com> PR-URL: #63110 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Richard Lau <richard.lau@ibm.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
1 parent 28eba71 commit d8475e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/tools.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ jobs:
311311
# no-op if the base branch is already up-to-date.
312312
with:
313313
token: ${{ secrets.GH_USER_TOKEN }}
314-
branch: actions/tools-update-${{ matrix.id }} # Custom branch *just* for this Action.
314+
branch: actions/${{ github.ref_name == 'main' || format('{0}/', github.ref_name) }}tools-update-${{ matrix.id }} # Custom branch *just* for this Action.
315315
delete-branch: true
316316
commit-message: ${{ env.COMMIT_MSG }}
317317
labels: ${{ matrix.label }}

0 commit comments

Comments
 (0)