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 0e96d75 + d4e256d commit c79b828Copy full SHA for c79b828
.github/workflows/versions.yaml
@@ -58,9 +58,9 @@ jobs:
58
make update
59
make generate
60
61
- # Reset jsonnetfile.lock.json if no dependencies were updated
62
- changedFiles=$(git diff --name-only | grep -vc 'jsonnetfile.lock.json')
63
- 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
64
git checkout -- jsonnetfile.lock.json;
65
fi
66
- name: Create Pull Request
0 commit comments