Skip to content

Commit 0184f58

Browse files
authored
Merge pull request #1293 from dgrisonnet/release-branch-update
2 parents d15f839 + 20f3cfa commit 0184f58

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/versions.yaml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
name: Upgrade to latest versions
22

3-
on:
4-
schedule:
5-
- cron: '37 13 * * 1'
3+
on: workflow_dispatch
64
jobs:
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
@@ -17,6 +22,7 @@ jobs:
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
@@ -30,8 +36,8 @@ jobs:
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
@@ -49,7 +55,7 @@ jobs:
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

0 commit comments

Comments
 (0)