Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
Update eslint.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sopyb authored Sep 4, 2023
1 parent 62b2c01 commit 44814ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ jobs:
eslint:
name: Run eslint scanning
runs-on: ubuntu-latest
env:
PAT_TOKEN: ${{ secrets.PAT }}
permissions:
contents: read
security-events: write
Expand All @@ -41,8 +39,10 @@ jobs:
run: npx eslint . --config .eslintrc.json --ext .js,.jsx,.ts,.tsx --fix || echo "ESLint fix failed"

- name: Commit changes (if any)
run: |
git diff --exit-code || (git config --global user.email "[email protected]" && git config --global user.name "GitHub Actions" && git commit -am "Fix ESLint issues" && git push https://[email protected]/NavigoLearn/API.git)
uses: ad-m/[email protected]
with:
branch: ${{ github.ref }}
github_token: ${{ secrets.PAT }}

- name: Run ESLint
run: npx eslint .
Expand Down

0 comments on commit 44814ee

Please sign in to comment.