Skip to content

Commit 167217b

Browse files
committed
Work on workflow for upgrading outdated dependencies
1 parent 7fc66e1 commit 167217b

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Update outdated dependencies
2+
3+
on:
4+
schedule:
5+
- cron: '0 20 * * 1-4'
6+
workflow_dispatch:
7+
8+
jobs:
9+
update-dependencies:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v5
14+
with:
15+
persist-credentials: false
16+
17+
- name: Install pip-tools
18+
run: |
19+
python -m venv venv
20+
source venv/bin/activate
21+
python -m pip install --upgrade pip pip-tools
22+
23+
- name: Read outdated dependencies
24+
id: read-outdated
25+
run: |
26+
OUTDATED="$(jq -r '.[1:][]' 'scripts/make_release_requirements.json')"
27+
echo "::set-output name=outdated::$OUTDATED"
28+
29+
- name: Upgrade outdated dependencies
30+
if: steps.read-outdated.outputs.outdated != ''
31+
run: |
32+
for package in ${{ steps.read-outdated.outputs.outdated }}; do
33+
echo "found outdated package: ${package}"
34+
# TODO: Attempt to upgrade the package.
35+
done
36+
37+
echo "done"

0 commit comments

Comments
 (0)