mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-04-25 02:22:34 +02:00
The action allso executes over all files. This is ok when using pre-conmit.ci. We only execute file fixes once.
39 lines
972 B
YAML
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.
|