Skip to content

Commit

Permalink
Revert "GitHub action to automatically run eslint --fix on PRs and co…
Browse files Browse the repository at this point in the history
…mmit the changes (#35)"

This reverts commit 88dfb15.
  • Loading branch information
doubleedesign committed Oct 6, 2024
1 parent 88dfb15 commit a46fb40
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions .github/workflows/pr-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: Checkout
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
Expand All @@ -34,16 +32,3 @@ jobs:

- name: Build
run: npm run build

- name: Auto-fix ESLint Issues
run: npx eslint . --fix

- name: Commit changes if any
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add .
git diff --quiet || git commit -m "ESLint auto-fix applied by GitHub Actions" || exit 0
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GitHub token for authentication

0 comments on commit a46fb40

Please sign in to comment.