about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-06-07 03:21:09 +0000
committerbors <bors@rust-lang.org>2025-06-07 03:21:09 +0000
commit1dc9ae6d104205f194d84643d13fd01904a0010d (patch)
tree9a4c083194048e5922714a18b30fed577cc57883
parent775e0c8aeb8f63192854b27156f8b05a06b51814 (diff)
parentec9e560a3010a8424b241d1671bdd81d87011204 (diff)
downloadrust-1dc9ae6d104205f194d84643d13fd01904a0010d.tar.gz
rust-1dc9ae6d104205f194d84643d13fd01904a0010d.zip
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*`
-rwxr-xr-xsrc/ci/scripts/create-doc-artifacts.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ci/scripts/create-doc-artifacts.sh b/src/ci/scripts/create-doc-artifacts.sh
index 2516b0d8505..487a9ba428f 100755
--- a/src/ci/scripts/create-doc-artifacts.sh
+++ b/src/ci/scripts/create-doc-artifacts.sh
@@ -15,7 +15,8 @@ fi
 branch=$(git branch --show-current || echo)
 
 if [ -n "$branch" ]; then
-    branch="${branch}-"
+    # Strip automation/bors/ prefix if present
+    branch="${branch#automation/bors/}-"
 fi
 
 if [ "${GITHUB_EVENT_NAME:=none}" = "pull_request" ]; then