We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9e628d commit 94f435aCopy full SHA for 94f435a
.github/workflows/tidy3d-python-client-tests.yml
@@ -211,11 +211,16 @@ jobs:
211
name: lint-branch-name
212
env:
213
PR_TITLE: ${{ github.event.pull_request.title }}
214
+ PR_BRANCH: ${{ github.event.pull_request.head.ref }}
215
steps:
216
- name: extract-branch-name
217
id: extract-branch-name
218
run: |
219
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
224
if [[ -z "$BRANCH_NAME" ]]; then
225
BRANCH_NAME="${GITHUB_REF_NAME:-${GITHUB_REF#refs/heads/}}"
226
echo "(fallback) Using ref-derived branch name: $BRANCH_NAME"
0 commit comments