File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 15
15
update_dependencies :
16
16
name : Update dependencies
17
17
runs-on : ubuntu-latest
18
+ strategy :
19
+ matrix :
20
+ branch : [master, 3.24.x]
18
21
steps :
19
22
- name : Checks-out repository
20
23
uses : actions/checkout@v4
24
+ with :
25
+ ref : ${{ matrix.branch }}
21
26
- name : Set up Python 3.12
22
27
uses : actions/setup-python@v5
23
28
with :
@@ -34,19 +39,19 @@ jobs:
34
39
run : |
35
40
echo "COMMIT_HASH_BEFORE=$(git log -1 --format=%H)">> $GITHUB_ENV
36
41
- name : Run update script
37
- run : python3 .github/workflows/update-deps.py --debug --bump=major
42
+ run : python3 .github/workflows/update-deps.py --debug --bump=${{ matrix.branch == 'master' && ' major' || 'minor' }}
38
43
- name : Save commit hash after
39
44
run : |
40
45
echo "COMMIT_HASH_AFTER=$(git log -1 --format=%H)">> $GITHUB_ENV
41
46
- name : Create Pull Request
42
47
if : env.COMMIT_HASH_BEFORE != env.COMMIT_HASH_AFTER
43
48
uses : cfengine/create-pull-request@v6
44
49
with :
45
- title : Updated dependencies
46
- body : Automated dependency updates
50
+ title : " Updated dependencies (${{ matrix.branch }}) "
51
+ body : " Automated dependency updates for the ${{ matrix.branch }} branch "
47
52
reviewers : |
48
53
olehermanse
49
54
larsewi
50
55
craigcomstock
51
- branch : update-dependencies-action
56
+ branch : update-dependencies-action-${{ matrix.branch }}
52
57
branch-suffix : timestamp
You can’t perform that action at this time.
0 commit comments