We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d84f866 + 4cb37b1 commit c54b870Copy full SHA for c54b870
.github/workflows/cmo-make-targets.yaml
@@ -48,9 +48,9 @@ jobs:
48
run: make ${{ inputs.make-targets }}
49
- name: Ignore if change is only in jsonnetfile.lock.json
50
run: |
51
- # Reset jsonnetfile.lock.json if no dependencies were updated
52
- changedFiles=$(git diff --name-only | grep -cv 'jsonnetfile.lock.json')
53
- if [[ "$changedFiles" -eq 0 ]]; then
+ # Reset jsonnetfile.lock.json if no dependencies were updated.
+ # grep returns 0 when it matches at least 1 line in the diff output.
+ if ! git diff --name-only | grep -qv 'jsonnetfile.lock.json'; then
54
git checkout -- jsonnet/jsonnetfile.lock.json;
55
fi
56
- name: get pr creation app token
0 commit comments