diff --git a/.github/workflows/autoformat-and-lint.yml b/.github/workflows/autoformat-and-lint.yml index e3467ff..669133b 100644 --- a/.github/workflows/autoformat-and-lint.yml +++ b/.github/workflows/autoformat-and-lint.yml @@ -5,26 +5,20 @@ on: merge_group: jobs: - autoformat: + autoformat-and-lint: name: Autoformat and Lint + if: github.actor != 'dependabot[bot]' runs-on: ubuntu-latest permissions: contents: write steps: - name: 🛎 Checkout - if: github.event.pull_request.user.login != 'dependabot[bot]' uses: actions/checkout@v4 with: ref: ${{ github.head_ref }} token: ${{ secrets.WORKFLOW_COMMIT }} - - name: 🤖🛎 Bot Checkout - if: github.event.pull_request.user.login == 'dependabot[bot]' - uses: actions/checkout@v4 - with: - ref: ${{ github.head_ref }} - - name: 🐍 Setup Python uses: actions/setup-python@v4 with: @@ -38,7 +32,6 @@ jobs: run: hatch fmt -f - name: ✅ Commit code format changes - if: github.event.pull_request.user.login != 'dependabot[bot]' uses: stefanzweifel/git-auto-commit-action@v5 with: commit_message: "Autoformat code"