52 lines
1.3 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
- name: Create pull request
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
- run: echo "Print the actor ${{ github.actor }}"