From dae7b352ddf977ad0313b277473985b395684e73 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Mon, 6 Nov 2023 10:11:26 -0800 Subject: [PATCH] ;ci: disable weekly scheduled builds They also run in forks, which I don't want. --- .github/workflows/binaries-mac-x64.yml | 11 ++++++++--- .github/workflows/binaries-windows-x64.yml | 8 +++++--- .github/workflows/ci.yml | 6 ++++++ 3 files changed, 19 insertions(+), 6 deletions(-) diff --git a/.github/workflows/binaries-mac-x64.yml b/.github/workflows/binaries-mac-x64.yml index c9d6cc541..3c1957046 100644 --- a/.github/workflows/binaries-mac-x64.yml +++ b/.github/workflows/binaries-mac-x64.yml @@ -1,12 +1,17 @@ -# Runs on any push to ci-mac, and weekly on master. +# Runs on any push to ci-mac. # Produces optimised mac binaries and runs unit/doc/functional tests, # using the default stack.yaml's GHC version. name: binaries-mac-x64 on: - schedule: - - cron: "0 07 * * 0" # sunday midnight pacific + # Avoid, because these run in all forks also. + # jobs: + # job_id: + # if: github.event.pull_request.head.repo.full_name == github.repository + # schedule: + # - cron: "0 07 * * 0" # sunday midnight pacific + push: branches: [ binaries-mac-x64, binaries ] workflow_dispatch: diff --git a/.github/workflows/binaries-windows-x64.yml b/.github/workflows/binaries-windows-x64.yml index 45d9d80c7..aa53efb9d 100644 --- a/.github/workflows/binaries-windows-x64.yml +++ b/.github/workflows/binaries-windows-x64.yml @@ -1,4 +1,4 @@ -# Runs on any push to ci-windows, and weekly on master. +# Runs on any push to ci-windows. # Produces optimised windows binaries, # using the default stack.yaml's GHC version. # Currently runs no tests. @@ -8,8 +8,10 @@ name: binaries-windows-x64 on: - schedule: - - cron: "0 07 * * 0" # sunday midnight pacific + # Avoid, because these run in all forks also. + # schedule: + # - cron: "0 07 * * 0" # sunday midnight pacific + push: branches: [ binaries-windows-x64, binaries ] workflow_dispatch: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 75bb8e6fc..b1f661c47 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,6 +12,12 @@ on: # On this schedule, it runs in master. # schedule: # - cron: "0 07 * * 0" # sunday midnight pacific + # Avoid, because these run in all forks also. + # Possible workaround; does it prevent wasteful startups ? + # https://github.com/orgs/community/discussions/26409#discussioncomment-3251818 + # jobs: + # job_id: + # if: github.event.pull_request.head.repo.full_name == github.repository # When there's a push to the ci branch, it runs there. # After passing there it can be merged/pushed to master.