diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 199f21c..e6a3157 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -9,6 +9,8 @@ jobs: pre-commit: runs-on: ubuntu-latest + permissions: + contents: write steps: - name: Checkout repository uses: actions/checkout@v2 @@ -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 }}