-
Notifications
You must be signed in to change notification settings - Fork 20
40 lines (36 loc) · 884 Bytes
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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:
- uses: actions/checkout@v2
- name: Set up node 14.x
uses: actions/setup-node@v1
with:
node-version: '14.x'
- 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"