Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/cmo-make-targets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ jobs:
run: make ${{ inputs.make-targets }}
- name: Ignore if change is only in jsonnetfile.lock.json
run: |
# Reset jsonnetfile.lock.json if no dependencies were updated
changedFiles=$(git diff --name-only | grep -cv 'jsonnetfile.lock.json')
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
git checkout -- jsonnet/jsonnetfile.lock.json;
fi
- name: get pr creation app token
Expand Down
Loading