Files
aki_prj23_transparenzregister/.github/workflows/maintenance.yaml
Philipp Horstenkamp b250b67343 Auto maintance push (#258)
Added that the maintance action allso runs on changes of itself.

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: philipp-horstenkamp <philipp-horstenkamp@users.noreply.github.com>
2023-10-23 17:50:51 +00:00

42 lines
1.0 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 }}
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.