mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-04-25 03:42:33 +02:00
I have found out that the python setup action supports the use of the poetry cache which increases the build speed.
50 lines
1.2 KiB
YAML
50 lines
1.2 KiB
YAML
name: Auto Maintenance Cycle
|
|
|
|
on:
|
|
schedule:
|
|
- cron: 30 7 * * *
|
|
push:
|
|
paths:
|
|
- .github/workflows/maintenance.yaml
|
|
|
|
jobs:
|
|
delete_all_untagged:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
name: [ingest, data-transformation, web-server]
|
|
steps:
|
|
- name: purge packages
|
|
uses: dylanratcliffe/delete-untagged-containers@main
|
|
with:
|
|
package_name: ${{ github.event.repository.name }}/${{ matrix.name }}
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
pre-commit-autoupdate:
|
|
name: pre-commit autoupdate
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
ssh-key: ${{ secrets.DEPLOY_KEY }}
|
|
|
|
- uses: actions/setup-python@v4
|
|
|
|
- run: pip install pre-commit
|
|
shell: bash
|
|
- run: pre-commit autoupdate
|
|
shell: bash
|
|
|
|
- uses: peter-evans/create-pull-request@v5
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
base: main
|
|
branch: update/pre-commit-hooks
|
|
title: Update pre-commit hooks
|
|
commit-message: 'chore: update pre-commit hooks'
|
|
body: Update versions of pre-commit hooks to latest version.
|
|
labels: chore
|
|
assignees: philipp-horstenkamp
|
|
reviewers: philipp-horstenkamp
|
|
delete-branch: true
|