Skip to content
Snippets Groups Projects
Unverified Commit ad63d6bb authored by Paweł Krupa's avatar Paweł Krupa Committed by GitHub
Browse files

Merge pull request #1220 from fpetkovski/auto-update-deps

.github/workflows: automatically update jsonnet dependencies
parents 4a3191fc d9fc85c0
No related branches found
No related tags found
No related merge requests found
......@@ -17,14 +17,26 @@ 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
# Reset jsonnetfile.lock.json if no dependencies were updated
changedFiles=$(git diff --name-only | grep -v 'jsonnetfile.lock.json')
if [[ $changedFiles == "" ]]; then
git checkout -- jsonnetfile.lock.json;
fi
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
commit-message: "[bot] Automated version update"
title: "[bot] Automated version update"
body: |
This is an automated version update performed from CI on behalf of @paulfantom.
This is an automated version and jsonnet dependencies update performed from CI on behalf of @paulfantom.
Configuration of the workflow is located in `.github/workflows/versions.yaml`
team-reviewers: kube-prometheus-reviewers
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment