Skip to content

Commit a9f742a

Browse files
authored
Fix checkout ref to use HEAD_BRANCH environment variable
1 parent 65f3d0a commit a9f742a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/qa.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,11 @@ jobs:
3535
env:
3636
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3737
- uses: actions/checkout@v6
38+
env:
39+
HEAD_BRANCH: ${{ github.event.workflow_run.head_branch }}
3840
with:
3941
repository: ${{ github.event.workflow_run.head_repository.full_name }}
40-
ref: ${{ github.event.workflow_run.head_branch }}
42+
ref: "$HEAD_BRANCH"
4143
fetch-depth: 0
4244
- name: Checkout base branch
4345
if: github.event.workflow_run.event == 'pull_request'

0 commit comments

Comments
 (0)