Skip to content

Commit

Permalink
🎨 Add permission
Browse files Browse the repository at this point in the history
  • Loading branch information
NTGNguyen committed Sep 8, 2024
1 parent 7f31afc commit 4807ddf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ jobs:
pre-commit:
runs-on: ubuntu-latest

permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand All @@ -31,7 +33,7 @@ jobs:
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add .
git commit -m "🎨 Auto Code Fix (Pre-commit)" || echo "No changes to commit"
git commit -m "🎨 Auto Code Fix (Pre-commit)" |A| echo "No changes to commit"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 4807ddf

Please sign in to comment.