Skip to content

Commit

Permalink
Merge pull request #100 from maryamtahhan/pre-commit-auto-update
Browse files Browse the repository at this point in the history
chore: update pre-commit hooks
  • Loading branch information
SamYuan1990 authored Nov 25, 2024
2 parents 9a35f57 + 3456058 commit ecc6cf8
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/pre-commit-auto-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Pre-commit auto-update
on: # yamllint disable-line rule:truthy
schedule:
- cron: 0 0 1 * *
jobs:
auto-update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
- name: Install pre-commit
run: pip install pre-commit
- name: Run pre-commit autoupdate
run: pre-commit autoupdate
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: update/pre-commit-autoupdate
title: Auto-update pre-commit hooks
commit-message: Auto-update pre-commit hooks
body: |
Update pre-commit hooks to latest version
labels: dependencies
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
rev: v5.0.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.9.2
rev: v0.15.0
hooks:
- id: markdownlint-cli2-rules-docker
- repo: https://github.com/shellcheck-py/shellcheck-py
Expand Down

0 comments on commit ecc6cf8

Please sign in to comment.