Skip to content

Commit

Permalink
workflow: Only run once on PR or merge to main
Browse files Browse the repository at this point in the history
Restrict when the workflow is run so that it will either run when pushed
to main, or when a pull request to main, and not for arbitrary other
branches.

Signed-off-by: David Brown <[email protected]>
  • Loading branch information
d3zd3z committed Sep 12, 2024
1 parent 013c5dd commit 2bb960f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ name: Build

on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: "0 0 * * *"

Expand Down

0 comments on commit 2bb960f

Please sign in to comment.