Merge pull request #1326 from dgrisonnet/fix-versions-ci

Fix automated update in CI
This commit is contained in:
Paweł Krupa 2021-08-17 09:08:08 +02:00 committed by GitHub
commit 50c9dd2c6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,8 +35,8 @@ jobs:
make generate
# Reset jsonnetfile.lock.json if no dependencies were updated
changedFiles=$(git diff --name-only | grep -v 'jsonnetfile.lock.json')
if [[ $changedFiles == "" ]]; then
changedFiles=$(git diff --name-only | grep -v 'jsonnetfile.lock.json' | wc -l)
if [[ "$changedFiles" -eq 0 ]]; then
git checkout -- jsonnetfile.lock.json;
fi
- name: Create Pull Request