Skip to content

Commit

Permalink
Update pre commit automatic update workflow (#1469)
Browse files Browse the repository at this point in the history
  • Loading branch information
arkid15r committed Sep 13, 2023
1 parent 06bc39f commit 0b40a49
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/pre-commit-autoupdate.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Pre-commit hooks autoupdate
name: Chores

on:
schedule:
Expand All @@ -7,18 +7,24 @@ on:

jobs:
auto-update:
name: Update pre-commit hooks
if: ${{ github.repository }} == "vacanza/python-holidays"
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4.7.0
- uses: browniebroke/pre-commit-autoupdate-action@v1.0.0
- uses: peter-evans/create-pull-request@v5.0.2
with:
author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
base: beta
body: Update versions of pre-commit hooks to the latest version.
branch: update/pre-commit-hooks
title: Update pre-commit hooks
author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
commit-message: "Chore: Update pre-commit hooks"
committer: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
body: Update versions of pre-commit hooks to latest version.
delete-branch: true
title: Update pre-commit hooks
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 0b40a49

Please sign in to comment.