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 1515 update_dependencies :
1616 name : Update dependencies
1717 runs-on : ubuntu-latest
18+ strategy :
19+ matrix :
20+ branch : [master, 3.24.x]
1821 steps :
1922 - name : Checks-out repository
2023 uses : actions/checkout@v4
24+ with :
25+ ref : ${{ matrix.branch }}
2126 - name : Set up Python 3.12
2227 uses : actions/setup-python@v5
2328 with :
@@ -34,19 +39,19 @@ jobs:
3439 run : |
3540 echo "COMMIT_HASH_BEFORE=$(git log -1 --format=%H)">> $GITHUB_ENV
3641 - 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' }}
3843 - name : Save commit hash after
3944 run : |
4045 echo "COMMIT_HASH_AFTER=$(git log -1 --format=%H)">> $GITHUB_ENV
4146 - name : Create Pull Request
4247 if : env.COMMIT_HASH_BEFORE != env.COMMIT_HASH_AFTER
4348 uses : cfengine/create-pull-request@v6
4449 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 "
4752 reviewers : |
4853 olehermanse
4954 larsewi
5055 craigcomstock
51- branch : update-dependencies-action
56+ branch : update-dependencies-action-${{ matrix.branch }}
5257 branch-suffix : timestamp
You can’t perform that action at this time.
0 commit comments