Skip to content

Commit

Permalink
Update GHA triggers to fine tune for code changes vs other updates
Browse files Browse the repository at this point in the history
Signed-off-by: John Kjell <[email protected]>
  • Loading branch information
jkjell committed Mar 8, 2024
1 parent 910d630 commit a51b61a
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
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

0 comments on commit a51b61a

Please sign in to comment.