Skip to content

Commit 5c85b1d

Browse files
committed
Fix up context variable use
1 parent ccb94c2 commit 5c85b1d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/check-cmor-cvs-table.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919

2020
- name: Update environment file
2121
env:
22-
CMIP7_CVS_FORK: ${{ github.event.inputs.cmip7-cvs-fork }}
23-
CMIP7_CVS_BRANCH: ${{ github.event.inputs.cmip7-cvs-branch }}
22+
CMIP7_CVS_FORK: ${{ github.event.pull_request.head.repo.owner.login }}
23+
CMIP7_CVS_BRANCH: ${{ github.head_ref || github.ref_name }}
2424
run: |
2525
# Update the CMIP7 CVs fork and branch in the environment file
2626
sed -i -e 's/CMIP7_CVS_FORK=.*/CMIP7_CVS_FORK='"${CMIP7_CVS_FORK}"'/g' cmor-cvs-creation.env

0 commit comments

Comments
 (0)