Skip to content

Commit 21e590f

Browse files
authored
fix: Update CI
1 parent 6614f6c commit 21e590f

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,9 @@ jobs:
4141
run: dotnet add package OpenActive.NET
4242
working-directory: ./OpenActive.DatasetSite.NET/
4343

44-
- name: Do not commit version bumps of the generator unless something else has been updated
45-
run: |
46-
git stash push package.json package-lock.json
47-
if [ -z "$(git status --porcelain)" ]; then echo "No changes"; else git stash apply; fi
48-
working-directory: ./OpenActive.DatasetSite.NET.Generator/
44+
- name: git stash if material changes have not been made
45+
run: if [ "$(git diff --numstat | grep -vc '^1.*DatasetSiteMustacheTemplate.cs\|.*package\.json\|.*package-lock\.json$')" -eq "0" ]; then git stash apply; else echo "Material changes found"; fi
46+
working-directory: ./
4947

5048
- name: Create Pull Request
5149
id: cpr

0 commit comments

Comments
 (0)