version: 1.10.0 #182
This file contains hidden or 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
| name: lint | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| - dev | |
| workflow_dispatch: | |
| inputs: | |
| update: | |
| description: 'lint' | |
| required: true | |
| default: 'Lint' | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18 | |
| - name: Install dependencies and Lint | |
| run: | | |
| npm ci | |
| ls -al | |
| npm run lint | |
| - name: Commit report | |
| run: | | |
| git config user.name 'Github Actions' | |
| git config user.email 'joo-na@users.noreply.github.com' | |
| git add -fN . | |
| git diff -- . > git.diff | |
| [ -s git.diff ] && git add -f . :!git.diff :!node_modules/* && git commit -m ":adhesive_bandage: lint" && git push || echo "Skip commit" |