Skip to content

Commit 4b735bf

Browse files
committed
update-deps.yml: fetch update-deps.py from master
The workflow for updating dependencies keeps failing on the weekly schedule because it checks out the `3.21.x` branch that does not have the update-deps.py script. Instead of coping this script to the older branch, I thought it would make more sense to fetch it from the master branch. This way we only need to maintain one copy of it. Ticket: CFE-4530 Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
1 parent 5ea7f86 commit 4b735bf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/update-deps.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ jobs:
3434
run: |
3535
python -m pip install --upgrade pip
3636
python -m pip install requests
37+
- name: Download script to update dependencies from master
38+
run: wget --directory-prefix /tmp https://raw.githubusercontent.com/cfengine/buildscripts/refs/heads/master/.github/workflows/update-deps.py
3739
- name: Set Git user
3840
run: |
3941
git config user.name 'github-actions[bot]'
@@ -42,7 +44,7 @@ jobs:
4244
run: |
4345
echo "COMMIT_HASH_BEFORE=$(git log -1 --format=%H)">> $GITHUB_ENV
4446
- name: Run update script
45-
run: python3 .github/workflows/update-deps.py --debug --bump=${{ matrix.branch == 'master' && 'major' || 'minor' }}
47+
run: python3 /tmp/update-deps.py --debug --bump=${{ matrix.branch == 'master' && 'major' || 'minor' }}
4648
- name: Save commit hash after
4749
run: |
4850
echo "COMMIT_HASH_AFTER=$(git log -1 --format=%H)">> $GITHUB_ENV

0 commit comments

Comments
 (0)