File tree Expand file tree Collapse file tree 2 files changed +42
-13
lines changed Expand file tree Collapse file tree 2 files changed +42
-13
lines changed Original file line number Diff line number Diff line change @@ -11,16 +11,3 @@ updates:
1111 time : " 04:00"
1212 open-pull-requests-limit : 5
1313 rebase-strategy : " disabled"
14-
15- # Maintain dependencies for Go
16- - package-ecosystem : " gomod"
17- directory : " /bib"
18- schedule :
19- interval : " daily"
20- time : " 04:00"
21- groups :
22- go-deps :
23- patterns :
24- - " *" # group all dependency updates into one PR
25- open-pull-requests-limit : 1
26- rebase-strategy : " auto"
Original file line number Diff line number Diff line change 1+ ---
2+ name : " Updates Go dependencies via gobump"
3+
4+ on : # yamllint disable-line rule:truthy
5+ workflow_dispatch :
6+ schedule :
7+ # Every Sunday at 15:00
8+ - cron : " 0 15 * * 0"
9+
10+ jobs :
11+ update-and-push :
12+ runs-on : ubuntu-latest
13+ container : registry.fedoraproject.org/fedora:42
14+ steps :
15+ - name : Update go.mod and open a PR
16+ env :
17+ GH_TOKEN : ${{ secrets.SCHUTZBOT_GITHUB_ACCESS_TOKEN }}
18+ run : |
19+ # Install deps
20+ set -x
21+ sudo dnf -y install git gh golang gpgme-devel btrfs-progs-devel krb5-devel
22+ # Checkout the project
23+ git clone --depth 1 https://github.com/osbuild/images
24+ cd images/
25+ # Install and run gobump
26+ go run github.com/lzap/gobump@latest -exec "go build ./..." -exec "go test ./..." 2>&1 | tee github_pr_body.txt
27+ ./tools/prepare-source.sh
28+ # Make a PR when needed
29+ if git diff --exit-code; then echo "No changes"; exit 0; fi
30+ git config user.name "schutzbot"
31+ git config user.email "[email protected] " 32+ branch="schutz-gobump-$(date -I)"
33+ git checkout -b "${branch}"
34+ git add -A
35+ git commit -m "build(deps): Update dependencies via gobump"
36+ git push -f "https://[email protected] /schutzbot/images.git" 37+ gh pr create \
38+ -t "Update dependencies $(date -I)" \
39+ -F "github_pr_body.txt" \
40+ --repo "osbuild/images" \
41+ --base "main" \
42+ --head "schutzbot:${branch}"
You can’t perform that action at this time.
0 commit comments