Skip to content

Commit

Permalink
simplify pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
grst committed Oct 1, 2024
1 parent 2f1db4b commit bd71304
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/pre_commit.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
name: "DSO lint"
on:
push:
branches: [main]
pull_request:
branches: [main]

name: pre-commit

jobs:
pre_commit:
name: "pre-commit"
pre-commit:
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip"

- uses: pre-commit/[email protected]

- uses: stefanzweifel/git-auto-commit-action@v5
if: '!cancelled()'
with:
commit_message: pre-commit autofixes

0 comments on commit bd71304

Please sign in to comment.