Skip to content

Commit e9539b8

Browse files
committed
Only lint on PR to main
1 parent c982fbb commit e9539b8

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

.github/workflows/lint.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
11
name: Lint
22

33
on:
4-
# Trigger the workflow on push or pull request,
5-
# but only for the main branch
6-
push:
7-
branches:
8-
- lint
9-
# Replace pull_request with pull_request_target if you
10-
# plan to use this action with forks, see the Limitations section
114
pull_request:
125
branches:
136
- main
147

15-
# Down scope as necessary via https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token
168
permissions:
179
checks: write
1810
contents: write
@@ -26,7 +18,6 @@ jobs:
2618
- name: Check out Git repository
2719
uses: actions/checkout@v4
2820

29-
# Install your linters here
3021
- name: Install Go
3122
run: sudo apt-get install -y golang-go
3223

0 commit comments

Comments
 (0)