From 36dbb14a0aa2a7e81502072c7cee1b74883f89de Mon Sep 17 00:00:00 2001 From: Kenneth Yang Date: Thu, 9 Mar 2023 12:31:36 -0800 Subject: [PATCH] Maybe fixed --- .github/workflows/autoformat-and-lint.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/autoformat-and-lint.yml b/.github/workflows/autoformat-and-lint.yml index a54aaf7..7a0933d 100644 --- a/.github/workflows/autoformat-and-lint.yml +++ b/.github/workflows/autoformat-and-lint.yml @@ -5,21 +5,18 @@ on: push: branches: [ "main" ] -concurrency: - group: "cleanup" - cancel-in-progress: true - jobs: autoformat: name: Autoformat and Lint runs-on: ubuntu-latest + permissions: + contents: write steps: - name: 🛎 Checkout uses: actions/checkout@v3 with: ref: ${{ github.head_ref }} - token: ${{ secrets.WORKFLOW_COMMIT }} - name: 🐍 Setup Python uses: actions/setup-python@v4 @@ -37,6 +34,7 @@ jobs: run: black . - name: ✅ Commit code format changes + if: github.event.pull_request.user.login != 'dependabot[bot]' uses: stefanzweifel/git-auto-commit-action@v4 with: commit_message: "Autoformat code"