Skip to content
Snippets Groups Projects
Commit 24b0e699 authored by Damien Grisonnet's avatar Damien Grisonnet
Browse files

.github: fix automated update in CI


Automated dependencies update in CI was failing whenever no new changes
were detected since git diff was returning 1.

Signed-off-by: default avatarDamien Grisonnet <dgrisonn@redhat.com>
parent 89b57081
No related branches found
No related tags found
No related merge requests found
...@@ -35,8 +35,8 @@ jobs: ...@@ -35,8 +35,8 @@ jobs:
make generate make generate
# Reset jsonnetfile.lock.json if no dependencies were updated # Reset jsonnetfile.lock.json if no dependencies were updated
changedFiles=$(git diff --name-only | grep -v 'jsonnetfile.lock.json') changedFiles=$(git diff --name-only | grep -v 'jsonnetfile.lock.json' | wc -l)
if [[ $changedFiles == "" ]]; then if [[ "$changedFiles" -eq 0 ]]; then
git checkout -- jsonnetfile.lock.json; git checkout -- jsonnetfile.lock.json;
fi fi
- name: Create Pull Request - name: Create Pull Request
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment