Skip to content

Commit

Permalink
Avoid redundant CI work by only building main and pull requests
Browse files Browse the repository at this point in the history
There's very little benefit to building every pushed commit and
this will mostly duplicate CI runs for open pull requests.
  • Loading branch information
PeterJCLaw committed May 14, 2024
1 parent 21209de commit 2e22b3e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Lint
on:
push:
branches:
- "*"
- main
pull_request:

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/render.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Render templates
on:
push:
branches:
- "*"
- main
pull_request:

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/spellcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Spellcheck
on:
push:
branches:
- "*"
- main
pull_request:

jobs:
Expand Down

0 comments on commit 2e22b3e

Please sign in to comment.