Created a first draft of this action. (#14)
All checks were successful
Auto Maintenance Cycle / pre-commit Autoupdate (push) Successful in 40s
All checks were successful
Auto Maintenance Cycle / pre-commit Autoupdate (push) Successful in 40s
Reviewed-on: #14 Co-authored-by: Philipp Horstenkamp <philipp@horstenkamp.de> Co-committed-by: Philipp Horstenkamp <philipp@horstenkamp.de>
This commit is contained in:
37
.gitea/workflows/maintenance.yaml
Normal file
37
.gitea/workflows/maintenance.yaml
Normal file
@ -0,0 +1,37 @@
|
||||
name: Auto Maintenance Cycle
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '* 1 * * 0'
|
||||
push:
|
||||
|
||||
jobs:
|
||||
auto-update:
|
||||
name: pre-commit Autoupdate
|
||||
runs-on: pi64
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v4
|
||||
|
||||
- run: pip install pre-commit
|
||||
shell: bash
|
||||
- run: pre-commit autoupdate
|
||||
shell: bash
|
||||
- name: Commit
|
||||
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: Generate Date
|
||||
run: echo "CURRENT_DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
|
||||
- name: Create an PR action
|
||||
uses: ./
|
||||
with:
|
||||
token: ${{ secrets.REPO_TOKEN }}
|
||||
branch: update/pre-commit-hooks
|
||||
title: Updates to the pre-commit action created at ${{ env.CURRENT_DATE }}
|
||||
body: Update to the pre-commit action.
|
||||
assignees: Philipp
|
||||
reviewers: Philipp
|
Reference in New Issue
Block a user