mirror of
https://github.com/prometheus-operator/kube-prometheus.git
synced 2025-10-30 15:41:02 +01:00
.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: Damien Grisonnet <dgrisonn@redhat.com>
This commit is contained in:
parent
89b57081f7
commit
24b0e699e4
4
.github/workflows/versions.yaml
vendored
4
.github/workflows/versions.yaml
vendored
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user