Skip to content

Commit

Permalink
Update reformat-and-lint.yml (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
microBob authored Feb 11, 2024
1 parent 03d02f6 commit a80f34b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/reformat-and-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,17 @@ on:

jobs:
reformat-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@v3
with:
token: ${{ secrets.WORKFLOW_COMMIT }}

- name: 🛎🤖 Bot Checkout
if: github.event.pull_request.user.login == 'dependabot[bot]'
uses: actions/checkout@v3

- name: 📦 Setup Node.js and caching
uses: actions/setup-node@v3
with:
Expand All @@ -39,7 +37,7 @@ jobs:
run: npx eslint .

- name: ⬆️ Commit changes
if: github.event.pull_request.user.login != 'dependabot[bot]'
if: github.ref != 'refs/heads/main'
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Reformat and Lint

0 comments on commit a80f34b

Please sign in to comment.