Philipp Horstenkamp f0d763cc5b
Fixing the pre-commit upgrade (#256)
The action allso executes over all files. This is ok when using
pre-conmit.ci. We only execute file fixes once.
2023-10-23 17:15:39 +02:00

39 lines
972 B
YAML

name: Auto Maintenance Cycle
on:
schedule:
- cron: 30 7 * * 1
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 }}
auto-update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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 }}
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.