Skip to content

Commit bfb1c67

Browse files
committed
dont run the workflows on every push (doubled in PRs etc)
1 parent 13fcd49 commit bfb1c67

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/build.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: build
22

3-
on: [push, pull_request, workflow_dispatch]
3+
on:
4+
push: { branches: [master, main] }
5+
pull_request:
6+
workflow_dispatch:
47

58
jobs:
69
build:

.github/workflows/golangci-lint.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
name: golangci-lint
22

3-
# push: # { branches: [master, main], tags: [v*] }
4-
on: [push, pull_request, workflow_dispatch]
3+
on:
4+
push: { branches: [master, main] }
5+
pull_request:
6+
workflow_dispatch:
57

68
# Optional: allow read access to pull request. Use with `only-new-issues` option.
79
permissions: { contents: read } # pull-requests: read

0 commit comments

Comments
 (0)