Skip to content

Commit

Permalink
ci: don't run heavy ci on push to main (#295)
Browse files Browse the repository at this point in the history
Due to extensive use of the merge queue, we essentially run the heavy ci
twice. once in the merge group and then again when being pushed from the
merge group to main. This wastes runner resources and time. Instead we
can just run on schedule every night and count on the merge group CI
runs.

Signed-off-by: simonsan <[email protected]>
  • Loading branch information
simonsan authored Oct 2, 2024
1 parent 034ce5b commit bb308d5
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/ci-heavy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,12 @@ defaults:
shell: bash

on:
push:
# Runs when a commit is pushed to the main branch
branches:
- main
merge_group:
# Runs in a merge group
types: [checks_requested]
schedule:
# Run every Sunday at midnight
- cron: "0 0 * * 0"
# Run every day at midnight
- cron: "0 0 * * *"

jobs:
fmt:
Expand Down

0 comments on commit bb308d5

Please sign in to comment.