-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
1 parent
19c62af
commit d06894f
Showing
1 changed file
with
32 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: "Let me lint:fix that for you" | ||
|
||
on: [push] | ||
|
||
jobs: | ||
LMLFTFY: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v2 | ||
- name: Install Linter | ||
run: | | ||
npm install --ignore-scripts | ||
cd frontend | ||
npm install --ignore-scripts | ||
- name: Fix everything which can be fixed | ||
run: 'npm run lint:fix' | ||
- uses: stefanzweifel/git-auto-commit-action@v4.0.0 | ||
with: | ||
commit_message: "Auto-fix linting issues" | ||
|
||
# Optional name of the branch the commit should be pushed to | ||
# Required if Action is used in Workflow listening to the `pull_request` event | ||
branch: ${{ github.head_ref }} | ||
|
||
# Optional git params | ||
commit_options: '--signoff' | ||
|
||
# Optional commit user and author settings | ||
commit_user_name: JuiceShopBot | ||
commit_user_email: 61591748+JuiceShopBot@users.noreply.github.com | ||
commit_author: JuiceShopBot <61591748+JuiceShopBot@users.noreply.github.com> |