*: add "update" target to makefile and use it in automatic updater

Signed-off-by: paulfantom <pawel@krupa.net.pl>
This commit is contained in:
paulfantom
2021-07-07 10:03:40 +02:00
parent acd7cdcde0
commit ed2ffe9d05
2 changed files with 6 additions and 5 deletions

View File

@@ -17,13 +17,10 @@ jobs:
# Write to temporary file to make update atomic
scripts/generate-versions.sh > /tmp/versions.json
mv /tmp/versions.json jsonnet/kube-prometheus/versions.json
- name: Install jsonnet bundler
run: |
go get github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb
- name: Update jsonnet dependencies
run: |
jb update
make --always-make generate
make update
make generate
# Reset jsonnetfile.lock.json if no dependencies were updated
changedFiles=$(git diff --name-only | grep -v 'jsonnetfile.lock.json')