File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 66jobs :
77 versions :
88 runs-on : ubuntu-latest
9+ strategy :
10+ matrix :
11+ branch :
12+ - ' release-0.8'
13+ - ' main'
914 steps :
1015 - uses : actions/checkout@v2
16+ with :
17+ ref : ${{ matrix.branch }}
1118 - uses : actions/setup-go@v2
1219 with :
1320 go-version : 1.16
1724 # Write to temporary file to make update atomic
1825 scripts/generate-versions.sh > /tmp/versions.json
1926 mv /tmp/versions.json jsonnet/kube-prometheus/versions.json
27+ if : ${{ matrix.branch }} == 'main'
2028 - name : Update jsonnet dependencies
2129 run : |
2230 make update
3038 - name : Create Pull Request
3139 uses : peter-evans/create-pull-request@v3
3240 with :
33- commit-message : " [bot] Automated version update"
34- title : " [bot] Automated version update"
41+ commit-message : " [bot] [${{ matrix.branch }}] Automated version update"
42+ title : " [bot] [${{ matrix.branch }}] Automated version update"
3543 body : |
3644 ## Description
3745
4957
5058 ```
5159 team-reviewers : kube-prometheus-reviewers
52- branch : automated-updates
60+ branch : automated-updates-${{ matrix.branch }}
5361 delete-branch : true
5462 # GITHUB_TOKEN cannot be used as it won't trigger CI in a created PR
5563 # More in https://github.com/peter-evans/create-pull-request/issues/155
You can’t perform that action at this time.
0 commit comments