Skip to content

Commit 35802d9

Browse files
authored
Fix variable reference for PR_REF in workflow
1 parent 6299707 commit 35802d9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@ jobs:
1717
fetch-depth: 0
1818
- name: "Extracting the merge base into 'SINCE'"
1919
id: since
20+
env:
21+
PR_REF: ${{ github.event.pull_request.head.ref }}
22+
2023
run: |
21-
if [ -z "${{ github.event.pull_request.head.ref }}" ]
24+
if [ -z $PR_REF ]
2225
then
2326
echo "SINCE=${{ github.sha }}^1" >> $GITHUB_OUTPUT
2427
else
@@ -53,8 +56,10 @@ jobs:
5356
fetch-depth: 0
5457
- name: "Extracting the merge base into 'SINCE'"
5558
id: since
59+
env:
60+
PR_REF: ${{ github.event.pull_request.head.ref }}
5661
run: |
57-
if [ -z "${{ github.event.pull_request.head.ref }}" ]
62+
if [ -z $PR_REF ]
5863
then
5964
echo "SINCE=${{ github.sha }}^1" >> $GITHUB_OUTPUT
6065
else

0 commit comments

Comments
 (0)