Reduced the executions
Some checks failed
Auto Maintenance Cycle / pre-commit Autoupdate (push) Failing after 1m27s

This commit is contained in:
Philipp Horstenkamp 2023-11-20 09:45:42 +01:00
parent c3c5593f42
commit e253c6f120

View File

@ -1,37 +1,37 @@
name: Auto Maintenance Cycle name: Auto Maintenance Cycle
on: on:
schedule: schedule:
- cron: '* 1 * * *' - cron: '0 1 * * *'
workflow_dispatch: workflow_dispatch:
jobs: jobs:
auto-update: auto-update:
name: pre-commit Autoupdate name: pre-commit Autoupdate
runs-on: pi64 runs-on: pi64
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-python@v4 - uses: actions/setup-python@v4
- run: pip install pre-commit - run: pip install pre-commit
shell: bash shell: bash
- run: pre-commit autoupdate - run: pre-commit autoupdate
shell: bash shell: bash
- name: Commit - name: Commit
uses: stefanzweifel/git-auto-commit-action@v5 uses: stefanzweifel/git-auto-commit-action@v5
with: with:
commit_message: 'chore: update pre-commit hooks' commit_message: 'chore: update pre-commit hooks'
branch: update/pre-commit-hooks branch: update/pre-commit-hooks
push_options: --force push_options: --force
create_branch: true create_branch: true
- name: Generate Date - name: Generate Date
run: echo "CURRENT_DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV run: echo "CURRENT_DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
- name: Create an PR action - name: Create an PR action
uses: ./ uses: ./
with: with:
token: ${{ secrets.REPO_TOKEN }} token: ${{ secrets.REPO_TOKEN }}
branch: update/pre-commit-hooks branch: update/pre-commit-hooks
title: Updates to the pre-commit action created at ${{ env.CURRENT_DATE }} title: Updates to the pre-commit action created at ${{ env.CURRENT_DATE }}
body: Update to the pre-commit action. body: Update to the pre-commit action.
assignees: Philipp assignees: Philipp
reviewers: Philipp reviewers: Philipp