Skip to content

Commit

Permalink
Set when to execute github actions.
Browse files Browse the repository at this point in the history
Signed-off-by: Steven Wade <[email protected]>
  • Loading branch information
swade1987 committed May 3, 2024
1 parent 346400d commit 756e757
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/golangci-lint.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
name: golangci
on:
push:
branches: [ main ]
paths:
- '**/*.go'
- '**/go.mod'
pull_request:
branches:
- main
branches: [ main ]
paths:
- '**/*.go'
- '**/go.mod'

permissions:
contents: read
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/sync-labels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: sync-labels
on:
workflow_dispatch:
push:
branches:
- main
branches: [ main ]
paths:
- .github/labels.yaml

Expand Down

0 comments on commit 756e757

Please sign in to comment.