Skip to content

Commit 67dce91

Browse files
authored
Fix CI
1 parent 5b2c070 commit 67dce91

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/create-data-model-pr.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ jobs:
4646
# - The dataset-site-template version number updating within the template in DatasetSiteMustacheTemplate.cs (affects one line)
4747
# - Any updates to the package.json or package-lock.json files in OpenActive.DatasetSite.NET.Generator (not worth creating a PR JUST for these if the new version did not have any implications)
4848
# git stashing if no material changes allows the next step to close the PR if one is already open
49-
run: if [ "$(git diff --numstat | grep -vc '^1\\t.*DatasetSiteMustacheTemplate\.cs\|.*package\.json\|.*package-lock\.json$')" -eq "0" ]; then git stash; else echo "Material changes found"; fi
49+
run: |
50+
git diff --numstat | grep -v '^1\t.*DatasetSiteMustacheTemplate\.cs\|.*package\.json\|.*package-lock\.json$'
51+
if [ "$(git diff --numstat | grep -vc '^1\t.*DatasetSiteMustacheTemplate\.cs\|.*package\.json\|.*package-lock\.json$')" -eq "0" ]; then git stash; else echo "Material changes found"; fi
5052
working-directory: ./
5153

5254
- name: Create Pull Request

0 commit comments

Comments
 (0)