Skip to content

Commit 1f0a234

Browse files
aduh95juanarbol
authored andcommitted
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 4b46697 commit 1f0a234

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
@@ -320,7 +320,7 @@ jobs:
320320
# no-op if the base branch is already up-to-date.
321321
with:
322322
token: ${{ secrets.GH_USER_TOKEN }}
323-
branch: actions/tools-update-${{ matrix.id }} # Custom branch *just* for this Action.
323+
branch: actions/${{ github.ref_name == 'main' || format('{0}/', github.ref_name) }}tools-update-${{ matrix.id }} # Custom branch *just* for this Action.
324324
delete-branch: true
325325
commit-message: ${{ env.COMMIT_MSG }}
326326
labels: ${{ matrix.label }}

0 commit comments

Comments
 (0)