Skip to content

Commit 6e0b0eb

Browse files
committed
fix branch name on merge queue
1 parent c3aed40 commit 6e0b0eb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ jobs:
8484
- name: Extract branch name
8585
id: extract_branch
8686
run: |
87-
if [[ "${GITHUB_REF}" == refs/heads/* ]]; then
87+
if [[ "${GITHUB_REF}" == refs/heads/gh-readonly-queue/* ]]; then
88+
BRANCH_NAME=$(echo "${GITHUB_REF}" | sed 's#refs/heads/gh-readonly-queue/[^/]*/##')
89+
elif [[ "${GITHUB_REF}" == refs/heads/* ]]; then
8890
BRANCH_NAME=${GITHUB_REF#refs/heads/}
8991
elif [[ "${GITHUB_REF}" == refs/pull/* ]]; then
9092
BRANCH_NAME=$(echo ${GITHUB_REF} | sed 's#refs/pull/##; s#/merge##')

0 commit comments

Comments
 (0)