Skip to content

Commit 34bf7d2

Browse files
authored
Lint fix
1 parent 7a46fa2 commit 34bf7d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/actions/get-branch/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ runs:
2323
id: get-branch
2424
run: |
2525
# Use HEAD_REF for PRs, fallback to REF_NAME for pushes.
26-
BRANCH_NAME_RAW="${HEAD_REF:-$REF_NAME}"
26+
BRANCH_NAME_RAW="${HEAD_REF:-"$REF_NAME"}"
2727
# Clean up the ref by removing 'refs/heads/' or 'refs/tags/'
2828
BRANCH_NAME="${BRANCH_NAME_RAW#refs/heads/}"
2929
BRANCH_NAME="${BRANCH_NAME#refs/tags/}"

0 commit comments

Comments
 (0)