Skip to content

Commit

Permalink
adding write permission
Browse files Browse the repository at this point in the history
  • Loading branch information
drifter089 committed Sep 10, 2024
1 parent a38cf05 commit df37f1f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
name: pre-commit

on:
pull_request:
push:
branches: [main]
branches:
- main
pull_request:
branches:
- '**'
permissions:
contents: write

jobs:
pre-commit:
Expand All @@ -12,6 +17,7 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
- uses: actions/setup-python@v3
- uses: actions/setup-python@v3
- name: Install pre-commit
Expand All @@ -25,4 +31,4 @@ jobs:
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Apply formatting changes
branch: ${{ github.head_ref }} # Push changes back to the current branch
branch: ${{ github.head_ref }}

0 comments on commit df37f1f

Please sign in to comment.