-
Notifications
You must be signed in to change notification settings - Fork 27
54 lines (50 loc) · 1.52 KB
/
maintenance-update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Maintenance release (update dependence and create releases)
on:
schedule:
- cron: "44 4 26 * *"
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v5
with:
python-version: "3.13"
cache: poetry
- uses: actions/checkout@v4
- run: pipx run poetry update --lock
- id: commit-and-push
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Updates dependencies
- if: ${{ steps.commit-and-push.outputs.changes_detected == false }}
run: gh run cancel ${{ github.run_id }} && tail -f /dev/null
env:
GITHUB_TOKEN: ${{ github.token }}
run-tests:
needs: [update]
uses: funkyfuture/deck-chores/.github/workflows/quality-checks.yml@main
with:
ref: main
bump-version:
needs: [run-tests]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: main
- id: bump
run: |
pipx run poetry version patch
echo "version=$(poetry version --short)" >> $GITHUB_OUTPUT
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: >
Bumps version to ${{ steps.bump.outputs.version }} (maintenance release)
tagging_message: ${{ steps.bump.outputs.version }}
build-and-publish:
needs: [bump-version]
uses: funkyfuture/deck-chores/.github/workflows/build-and-publish.yml@main
with:
ref: main
secrets: inherit