Skip to content

Commit

Permalink
Update CI workflow events (#12)
Browse files Browse the repository at this point in the history
Trigger a CI workflow build via push only for the main and develop
branches. This avoids the CI always doing to build twice when pushed and
making a PR for a branch.

Specify the specific PR events to trigger on.

Run the CI automatically every week day so we can be alerted if a build
suddenly fails when we're not working on it.

Cancel builds in progress immediately when a new change is pushed on a
branch, except for the main branch.

[skip changeset]
[skip review]
  • Loading branch information
tombruijn authored Oct 2, 2024
1 parent bb3cad9 commit 3139412
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,19 @@ name: CI

on:
push:
branches:
- main
- develop
pull_request:
workflow_dispatch:
types:
- opened
- reopened
- synchronize
schedule:
- cron: 0 0 * * 1-5
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: "${{ !contains(github.ref, 'main')}}"

jobs:
ci:
Expand Down

0 comments on commit 3139412

Please sign in to comment.