fixed-an-action (#20)
Some checks failed
Auto Maintenance Cycle / pre-commit Autoupdate (push) Failing after 31s
Some checks failed
Auto Maintenance Cycle / pre-commit Autoupdate (push) Failing after 31s
Reworked the action to include an pass for the 409 error. Reviewed-on: #20 Co-authored-by: Philipp Horstenkamp <philipp@horstenkamp.de> Co-committed-by: Philipp Horstenkamp <philipp@horstenkamp.de>
This commit is contained in:
@ -3,6 +3,9 @@ name: Auto Maintenance Cycle
|
||||
on:
|
||||
schedule:
|
||||
- cron: 0 1 * * *
|
||||
push:
|
||||
paths:
|
||||
- .gitea/workflows/maintenance.yaml
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
@ -17,7 +20,9 @@ jobs:
|
||||
shell: bash
|
||||
- run: pre-commit autoupdate
|
||||
shell: bash
|
||||
- run: pre-commit run -a
|
||||
- name: Commit
|
||||
id: auto-commit-action
|
||||
uses: stefanzweifel/git-auto-commit-action@v5
|
||||
with:
|
||||
commit_message: 'chore: update pre-commit hooks'
|
||||
@ -26,7 +31,7 @@ jobs:
|
||||
create_branch: true
|
||||
- name: Generate Date
|
||||
run: echo "CURRENT_DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
|
||||
- name: Create an PR action
|
||||
- name: Create an PR
|
||||
if: steps.auto-commit-action.outputs.changes_detected == 'true'
|
||||
uses: ./
|
||||
with:
|
||||
@ -34,5 +39,3 @@ jobs:
|
||||
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