Skip to content

Commit 1dc9ae6

Browse files
committed
Auto merge of #141910 - Kobzol:new-bors-try-branch-name-doc, r=marcoieni
Fix `create-docs-artifacts.sh` with new bors The slashes in the branch name (`automation/bors/try`) were causing issues for this script (https://github.com/rust-lang/rust/actions/runs/15391908130/job/43303193243). r? `@marcoieni` try-job: `mingw-check*`
2 parents 775e0c8 + ec9e560 commit 1dc9ae6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ci/scripts/create-doc-artifacts.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ fi
1515
branch=$(git branch --show-current || echo)
1616

1717
if [ -n "$branch" ]; then
18-
branch="${branch}-"
18+
# Strip automation/bors/ prefix if present
19+
branch="${branch#automation/bors/}-"
1920
fi
2021

2122
if [ "${GITHUB_EVENT_NAME:=none}" = "pull_request" ]; then

0 commit comments

Comments
 (0)