mirror of
https://github.com/tailscale/tailscale.git
synced 2025-11-30 06:51:57 +01:00
.github/workflows: only run golang ci lint when go files have changed
Restrict running the golangci-lint workflow to when the workflow file itself or a .go file, go.mod, or go.sum have actually been modified. Updates #cleanup Signed-off-by: Mario Minardi <mario@tailscale.com>
This commit is contained in:
parent
b40272e767
commit
411cee0dc9
6
.github/workflows/golangci-lint.yml
vendored
6
.github/workflows/golangci-lint.yml
vendored
@ -2,7 +2,11 @@ name: golangci-lint
|
|||||||
on:
|
on:
|
||||||
# For now, only lint pull requests, not the main branches.
|
# For now, only lint pull requests, not the main branches.
|
||||||
pull_request:
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- ".github/workflows/golangci-lint.yml"
|
||||||
|
- "**.go"
|
||||||
|
- "go.mod"
|
||||||
|
- "go.sum"
|
||||||
# TODO(andrew): enable for main branch after an initial waiting period.
|
# TODO(andrew): enable for main branch after an initial waiting period.
|
||||||
#push:
|
#push:
|
||||||
# branches:
|
# branches:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user