@@ -2,8 +2,7 @@ name: auto-update
2
2
3
3
on :
4
4
schedule :
5
- - cron : ' 0 12 * * 0,4'
6
- - cron : ' 0 18 7,21 * *' # Git
5
+ - cron : ' 0 18 14,28 * *' # Git and Python packages
7
6
- cron : ' 0 18 10 2-12/2 *' # Python release schedule
8
7
workflow_dispatch :
9
8
15
14
uses : actions/checkout@v4
16
15
17
16
- name : Fetch latest Git release
18
- if : ${{ github.event.schedule == '0 18 7,21 * *' || github.event_name == 'workflow_dispatch' }}
17
+ if : ${{ github.event.schedule == '0 18 14,28 * *' || github.event_name == 'workflow_dispatch' }}
19
18
run : |
20
19
git_version=$(git ls-remote --tags https://github.com/git/git | grep -o 'refs/tags/v[0-9]*\.[0-9]*\.[0-9]*$' | sort -V | tail -n1 | sed 's/refs\/tags\///' | sed 's/^v//')
21
20
@@ -44,18 +43,21 @@ jobs:
44
43
sed -E -i "s/3\.13\.[0-9]+/$python_version/g" README.md
45
44
46
45
- name : Update requirements
46
+ if : ${{ github.event.schedule == '0 18 14,28 * *' || github.event_name == 'workflow_dispatch' }}
47
47
uses : coatl-dev/actions/pip-compile@v3
48
48
with :
49
49
path : requirements/3.12/pip.txt
50
50
python-version : ' 3.12'
51
51
52
52
- name : Update requirements
53
+ if : ${{ github.event.schedule == '0 18 14,28 * *' || github.event_name == 'workflow_dispatch' }}
53
54
uses : coatl-dev/actions/pip-compile@v3
54
55
with :
55
56
path : requirements/pip.txt
56
57
python-version : ' 3.13'
57
58
58
59
- name : Extract package versions and update Dockerfile
60
+ if : ${{ github.event.schedule == '0 18 14,28 * *' || github.event_name == 'workflow_dispatch' }}
59
61
run : |
60
62
pip312=$(grep '^pip==' requirements/3.12/pip.txt | cut -d '=' -f 3)
61
63
pip=$(grep '^pip==' requirements/pip.txt | cut -d '=' -f 3)
0 commit comments