Skip to content

Commit 94f435a

Browse files
committed
fix(ci): handle reviews in branch name lint
1 parent e9e628d commit 94f435a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/tidy3d-python-client-tests.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,11 +211,16 @@ jobs:
211211
name: lint-branch-name
212212
env:
213213
PR_TITLE: ${{ github.event.pull_request.title }}
214+
PR_BRANCH: ${{ github.event.pull_request.head.ref }}
214215
steps:
215216
- name: extract-branch-name
216217
id: extract-branch-name
217218
run: |
218219
BRANCH_NAME="${GITHUB_HEAD_REF}"
220+
if [[ -z "$BRANCH_NAME" && -n "$PR_BRANCH" ]]; then
221+
BRANCH_NAME="$PR_BRANCH"
222+
echo "(fallback) Using PR head branch name: $BRANCH_NAME"
223+
fi
219224
if [[ -z "$BRANCH_NAME" ]]; then
220225
BRANCH_NAME="${GITHUB_REF_NAME:-${GITHUB_REF#refs/heads/}}"
221226
echo "(fallback) Using ref-derived branch name: $BRANCH_NAME"

0 commit comments

Comments
 (0)