File tree Expand file tree Collapse file tree 2 files changed +37
-0
lines changed
Expand file tree Collapse file tree 2 files changed +37
-0
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments