Skip to content

Commit fa6faa7

Browse files
committed
fix linter action
1 parent 588785e commit fa6faa7

File tree

1 file changed

+29
-4
lines changed

1 file changed

+29
-4
lines changed

.github/workflows/lint.yml

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,34 @@
1-
name: lint
1+
name: Lint
2+
23
on:
4+
# Trigger the workflow on push or pull request,
5+
# but only for the main branch
36
push:
47
branches:
5-
- master
8+
- main
9+
# Replace pull_request with pull_request_target if you
10+
# plan to use this action with forks, see the Limitations section
611
pull_request:
7-
workflow_dispatch:
12+
branches:
13+
- main
14+
15+
# Down scope as necessary via https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token
16+
permissions:
17+
checks: write
18+
contents: write
19+
820
jobs:
9-
# TODO:
21+
run-linters:
22+
name: Run linters
23+
runs-on: ubuntu-latest
24+
25+
steps:
26+
- name: Check out Git repository
27+
uses: actions/checkout@v2
28+
29+
# Install your linters here
30+
31+
- name: Run linters
32+
uses: wearerequired/lint-action@v2
33+
with:
34+
# Enable your linters here

0 commit comments

Comments
 (0)