First draft.
This commit is contained in:
39
.gitea/workflows/maintenance.yaml
Normal file
39
.gitea/workflows/maintenance.yaml
Normal file
@ -0,0 +1,39 @@
|
||||
name: Auto Maintenance Cycle
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '* 1 * * 0'
|
||||
push:
|
||||
#paths:
|
||||
#- .gitea/workflows/maintenance.yaml
|
||||
|
||||
jobs:
|
||||
auto-update:
|
||||
name: pre-commit Autoupdate
|
||||
runs-on: pi64
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ssh-key: ${{ secrets.DEPLOY_KEY }}
|
||||
ref: main
|
||||
ssh-strict: false
|
||||
|
||||
- uses: actions/setup-python@v4
|
||||
|
||||
- run: pip install pre-commit
|
||||
shell: bash
|
||||
- run: pre-commit autoupdate
|
||||
shell: bash
|
||||
|
||||
- uses: stefanzweifel/git-auto-commit-action@v5
|
||||
with:
|
||||
commit_message: 'chore: update pre-commit hooks'
|
||||
branch: update/pre-commit-hooks
|
||||
push_options: --force
|
||||
create_branch: true
|
||||
|
||||
- name: Run My Action
|
||||
uses: ./
|
||||
with:
|
||||
branch: ${{ github.ref }}
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
Reference in New Issue
Block a user