Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GHA triggers to fine tune for code changes vs other updates #406

Merged
merged 4 commits into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ on:
pull_request:
# The branches below must be a subset of the branches above
branches: ["main"]
paths:
- "**.go"
- "go.mod"
- ".github/workflows/codeql.yml"
schedule:
- cron: "0 0 * * 1"

Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@ on:
tags:
- v*
branches:
- master
- main
pull_request:
branches:
- main
paths:
- "**.go"
- "go.mod"
- ".github/workflows/golangci-lint.yml"
permissions:
contents: read
pull-requests: read
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,19 @@
# limitations under the License.

name: release
on: [push, pull_request]
on:
push:
tags:
- v*
branches:
- main
pull_request:
branches:
- main
paths-ignore:
- "**.md"
- "docs/**"
- "docs-site/**"

permissions:
contents: read # This is required for actions/checkout
Expand Down
Loading