This repository has been archived by the owner on May 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 . | ||
|