Skip to content

Commit 2a1948e

Browse files
authored
ci: change cron schedule for auto-update and publish (#169)
1 parent 5619948 commit 2a1948e

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

.github/workflows/auto-update.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ name: auto-update
22

33
on:
44
schedule:
5-
- cron: '0 12 * * 0,4'
6-
- cron: '0 18 7,21 * *' # Git
5+
- cron: '0 18 14,28 * *' # Git and Python packages
76
- cron: '0 18 10 2-12/2 *' # Python release schedule
87
workflow_dispatch:
98

@@ -15,7 +14,7 @@ jobs:
1514
uses: actions/checkout@v4
1615

1716
- 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' }}
1918
run: |
2019
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//')
2120
@@ -44,18 +43,21 @@ jobs:
4443
sed -E -i "s/3\.13\.[0-9]+/$python_version/g" README.md
4544
4645
- name: Update requirements
46+
if: ${{ github.event.schedule == '0 18 14,28 * *' || github.event_name == 'workflow_dispatch' }}
4747
uses: coatl-dev/actions/pip-compile@v3
4848
with:
4949
path: requirements/3.12/pip.txt
5050
python-version: '3.12'
5151

5252
- name: Update requirements
53+
if: ${{ github.event.schedule == '0 18 14,28 * *' || github.event_name == 'workflow_dispatch' }}
5354
uses: coatl-dev/actions/pip-compile@v3
5455
with:
5556
path: requirements/pip.txt
5657
python-version: '3.13'
5758

5859
- name: Extract package versions and update Dockerfile
60+
if: ${{ github.event.schedule == '0 18 14,28 * *' || github.event_name == 'workflow_dispatch' }}
5961
run: |
6062
pip312=$(grep '^pip==' requirements/3.12/pip.txt | cut -d '=' -f 3)
6163
pip=$(grep '^pip==' requirements/pip.txt | cut -d '=' -f 3)

.github/workflows/publish.yml

-5
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@ on:
55
branches:
66
- 'coatl'
77
paths:
8-
- '.github/workflows/publish.yml'
98
- 'Dockerfile'
10-
schedule:
11-
- cron: '0 20 * * 2,6'
12-
- cron: '0 16 1 * *'
139

1410
jobs:
1511
tagger:
@@ -43,7 +39,6 @@ jobs:
4339
dockerhub-username: ${{ vars.DOCKERHUB_USERNAME }}
4440
quay-repo: quay.io/coatldev/six
4541
quay-username: ${{ vars.QUAY_USERNAME }}
46-
build-cache: ${{ github.event.schedule != '0 16 1 * *' }}
4742
metadata-tags: |
4843
type=raw,value=${{ needs.tagger.outputs.version }}
4944
type=raw,value=${{ needs.tagger.outputs.major-minor }}

0 commit comments

Comments
 (0)