Skip to content

Commit 94d74f6

Browse files
Merge pull request #1663 from aleksandrychev/ENT-12711
Added 3.24.x branch to scheduled dependency updates workflow
2 parents f018a42 + 9252e17 commit 94d74f6

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/update-deps.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,14 @@ jobs:
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

0 commit comments

Comments
 (0)