Skip to content

Commit 62d7459

Browse files
committed
Fix up check workflow
1 parent dee5a9c commit 62d7459

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,14 @@ jobs:
3131
source cmor-cvs-creation.env
3232
bash install-environment-for-cmor-cvs-creation.sh -v
3333
34+
- name: Reset environment file
35+
run: |
36+
# Reset environment file (we don't need/want to keep these changes)
37+
git checkout -- cmor-cvs-creation.env
38+
3439
- name: Check CMOR CVs table is up to date
3540
run: |
3641
esgvoc cmor-export-cvs-table --out-path cmor-cvs.json
3742
3843
git diff
39-
(! git status --porcelain --untracked-files=no | grep '^.M') || (echo 'CMOR CVs table is not up to date. Please comment `/update-cmor-cvs-table` in your pull request or update the CMOR CVs file locally and commit the result. If you need help, please feel free to tag `@znichollscr` in your pull request.' && exit 1)
44+
(! git status --porcelain --untracked-files=no | grep '^.M') || (echo 'CMOR CVs table and/or related files are not up to date. Please comment `/update-cmor-cvs-table` in your pull request or update the CMOR CVs file locally and commit the result. If you need help, please feel free to tag `@znichollscr` in your pull request.' && exit 1)

0 commit comments

Comments
 (0)