File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed
Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change 11name : Upgrade to latest versions
22
3- on :
4- schedule :
5- - cron : ' 37 13 * * 1'
3+ on : workflow_dispatch
64jobs :
75 versions :
86 runs-on : ubuntu-latest
7+ strategy :
8+ matrix :
9+ branch :
10+ - ' release-0.8'
11+ - ' main'
912 steps :
1013 - uses : actions/checkout@v2
14+ with :
15+ ref : ${{ matrix.branch }}
1116 - uses : actions/setup-go@v2
1217 with :
1318 go-version : 1.16
1722 # Write to temporary file to make update atomic
1823 scripts/generate-versions.sh > /tmp/versions.json
1924 mv /tmp/versions.json jsonnet/kube-prometheus/versions.json
25+ if : ${{ matrix.branch }} == 'main'
2026 - name : Update jsonnet dependencies
2127 run : |
2228 make update
3036 - name : Create Pull Request
3137 uses : peter-evans/create-pull-request@v3
3238 with :
33- commit-message : " [bot] Automated version update"
34- title : " [bot] Automated version update"
39+ commit-message : " [bot] [${{ matrix.branch }}] Automated version update"
40+ title : " [bot] [${{ matrix.branch }}] Automated version update"
3541 body : |
3642 ## Description
3743
4955
5056 ```
5157 team-reviewers : kube-prometheus-reviewers
52- branch : automated-updates
58+ branch : automated-updates-${{ matrix.branch }}
5359 delete-branch : true
5460 # GITHUB_TOKEN cannot be used as it won't trigger CI in a created PR
5561 # More in https://github.com/peter-evans/create-pull-request/issues/155
You can’t perform that action at this time.
0 commit comments