From edea765f278824bb7cd594db2bb66098486486d1 Mon Sep 17 00:00:00 2001 From: Samuel Felton Date: Mon, 27 May 2024 21:20:37 +0200 Subject: [PATCH] disable ci on every push --- .github/workflows/coverage.yml | 2 +- .github/workflows/ios.yml | 2 +- .github/workflows/macos-linux-conda.yml | 4 +++- .github/workflows/macos-ustk.yml | 2 +- .github/workflows/macos.yml | 2 +- .github/workflows/other-arch-isolated.yml | 2 +- .github/workflows/other-arch.yml | 2 +- .github/workflows/ubuntu-3rdparty.yml | 2 +- .github/workflows/ubuntu-contrib.yml | 2 +- .github/workflows/ubuntu-dep-apt.yml | 2 +- .github/workflows/ubuntu-dep-src.yml | 2 +- .github/workflows/ubuntu-isolated.yml | 2 +- .github/workflows/ubuntu-sanitizers.yml | 2 +- .github/workflows/ubuntu-ustk.yml | 2 +- .github/workflows/ubuntu-venv.yml | 2 +- .github/workflows/valgrind.yml | 2 +- .github/workflows/windows-clang.yaml | 2 +- .github/workflows/windows-conda.yml | 4 +++- .github/workflows/windows-msvc.yaml | 2 +- 19 files changed, 23 insertions(+), 19 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 29e7aff251..8300f3e7e8 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -2,8 +2,8 @@ name: Code-coverage # https://www.jeffgeerling.com/blog/2020/running-github-actions-workflow-on-schedule-and-other-events on: - push: pull_request: + types: [opened, reopened, synchronized] schedule: - cron: '0 2 * * SUN' diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml index eb3c8f95c6..c9d1f74f64 100644 --- a/.github/workflows/ios.yml +++ b/.github/workflows/ios.yml @@ -2,8 +2,8 @@ name: iOS # https://www.jeffgeerling.com/blog/2020/running-github-actions-workflow-on-schedule-and-other-events on: - push: pull_request: + types: [opened, reopened, synchronized] schedule: - cron: '0 2 * * SUN' diff --git a/.github/workflows/macos-linux-conda.yml b/.github/workflows/macos-linux-conda.yml index 1bb7047061..f5be68c1b3 100644 --- a/.github/workflows/macos-linux-conda.yml +++ b/.github/workflows/macos-linux-conda.yml @@ -1,6 +1,8 @@ name: MacOS-Linux-conda-CI -on: [push,pull_request] +on: + pull_request: + types: [opened, reopened, synchronized] concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/macos-ustk.yml b/.github/workflows/macos-ustk.yml index 266e8c3baf..0acf0190d8 100644 --- a/.github/workflows/macos-ustk.yml +++ b/.github/workflows/macos-ustk.yml @@ -2,8 +2,8 @@ name: MacOS-ustk # https://www.jeffgeerling.com/blog/2020/running-github-actions-workflow-on-schedule-and-other-events on: - push: pull_request: + types: [opened, reopened, synchronized] schedule: - cron: '0 2 * * SUN' diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 7bd441dbbe..2c0bfb8339 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -2,8 +2,8 @@ name: MacOS # https://www.jeffgeerling.com/blog/2020/running-github-actions-workflow-on-schedule-and-other-events on: - push: pull_request: + types: [opened, reopened, synchronized] schedule: - cron: '0 2 * * SUN' diff --git a/.github/workflows/other-arch-isolated.yml b/.github/workflows/other-arch-isolated.yml index 868bfebb3d..537539ce5d 100644 --- a/.github/workflows/other-arch-isolated.yml +++ b/.github/workflows/other-arch-isolated.yml @@ -3,8 +3,8 @@ name: Other-architectures-isolated # https://www.jeffgeerling.com/blog/2020/running-github-actions-workflow-on-schedule-and-other-events # https://github.com/uraimo/run-on-arch-action on: - push: pull_request: + types: [opened, reopened, synchronized] schedule: - cron: '0 2 * * SUN' diff --git a/.github/workflows/other-arch.yml b/.github/workflows/other-arch.yml index 902a514e86..35b5120f3a 100644 --- a/.github/workflows/other-arch.yml +++ b/.github/workflows/other-arch.yml @@ -3,8 +3,8 @@ name: Other-architectures # https://www.jeffgeerling.com/blog/2020/running-github-actions-workflow-on-schedule-and-other-events # https://github.com/uraimo/run-on-arch-action on: - push: pull_request: + types: [opened, reopened, synchronized] schedule: - cron: '0 2 * * SUN' diff --git a/.github/workflows/ubuntu-3rdparty.yml b/.github/workflows/ubuntu-3rdparty.yml index a0950d6946..9c50160d72 100644 --- a/.github/workflows/ubuntu-3rdparty.yml +++ b/.github/workflows/ubuntu-3rdparty.yml @@ -2,8 +2,8 @@ name: Ubuntu-3rdparty # https://www.jeffgeerling.com/blog/2020/running-github-actions-workflow-on-schedule-and-other-events on: - push: pull_request: + types: [opened, reopened, synchronized] schedule: - cron: '0 2 * * SUN' diff --git a/.github/workflows/ubuntu-contrib.yml b/.github/workflows/ubuntu-contrib.yml index 6ff03f0316..fc5da55185 100644 --- a/.github/workflows/ubuntu-contrib.yml +++ b/.github/workflows/ubuntu-contrib.yml @@ -2,8 +2,8 @@ name: Ubuntu-contrib # https://www.jeffgeerling.com/blog/2020/running-github-actions-workflow-on-schedule-and-other-events on: - push: pull_request: + types: [opened, reopened, synchronized] schedule: - cron: '0 2 * * SUN' diff --git a/.github/workflows/ubuntu-dep-apt.yml b/.github/workflows/ubuntu-dep-apt.yml index cc206218f6..300ed50b79 100644 --- a/.github/workflows/ubuntu-dep-apt.yml +++ b/.github/workflows/ubuntu-dep-apt.yml @@ -2,8 +2,8 @@ name: Ubuntu-dep-apt # https://www.jeffgeerling.com/blog/2020/running-github-actions-workflow-on-schedule-and-other-events on: - push: pull_request: + types: [opened, reopened, synchronized] schedule: - cron: '0 2 * * SUN' diff --git a/.github/workflows/ubuntu-dep-src.yml b/.github/workflows/ubuntu-dep-src.yml index 4f85386dcf..2032fae33e 100644 --- a/.github/workflows/ubuntu-dep-src.yml +++ b/.github/workflows/ubuntu-dep-src.yml @@ -2,8 +2,8 @@ name: Ubuntu-dep-src # https://www.jeffgeerling.com/blog/2020/running-github-actions-workflow-on-schedule-and-other-events on: - push: pull_request: + types: [opened, reopened, synchronized] schedule: - cron: '0 2 * * SUN' diff --git a/.github/workflows/ubuntu-isolated.yml b/.github/workflows/ubuntu-isolated.yml index bd5684f0e5..d1e8732dca 100644 --- a/.github/workflows/ubuntu-isolated.yml +++ b/.github/workflows/ubuntu-isolated.yml @@ -3,8 +3,8 @@ name: Ubuntu-isolated # https://www.jeffgeerling.com/blog/2020/running-github-actions-workflow-on-schedule-and-other-events on: - push: pull_request: + types: [opened, reopened, synchronized] schedule: - cron: '0 2 * * SUN' diff --git a/.github/workflows/ubuntu-sanitizers.yml b/.github/workflows/ubuntu-sanitizers.yml index 4210c71d7f..ff1654e35e 100644 --- a/.github/workflows/ubuntu-sanitizers.yml +++ b/.github/workflows/ubuntu-sanitizers.yml @@ -1,8 +1,8 @@ name: Ubuntu-sanitizers on: - push: pull_request: + types: [opened, reopened, synchronized] schedule: # https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#scheduled-events # * is a special character in YAML so you have to quote this string diff --git a/.github/workflows/ubuntu-ustk.yml b/.github/workflows/ubuntu-ustk.yml index 6c63dd55db..0229495a07 100644 --- a/.github/workflows/ubuntu-ustk.yml +++ b/.github/workflows/ubuntu-ustk.yml @@ -2,8 +2,8 @@ name: Ubuntu-ustk # https://www.jeffgeerling.com/blog/2020/running-github-actions-workflow-on-schedule-and-other-events on: - push: pull_request: + types: [opened, reopened, synchronized] schedule: - cron: '0 2 * * SUN' diff --git a/.github/workflows/ubuntu-venv.yml b/.github/workflows/ubuntu-venv.yml index 89b37b7dd3..4b82406420 100644 --- a/.github/workflows/ubuntu-venv.yml +++ b/.github/workflows/ubuntu-venv.yml @@ -2,8 +2,8 @@ name: Ubuntu-python-bindings-venv # https://www.jeffgeerling.com/blog/2020/running-github-actions-workflow-on-schedule-and-other-events on: - push: pull_request: + types: [opened, reopened, synchronized] schedule: - cron: '0 2 * * SUN' diff --git a/.github/workflows/valgrind.yml b/.github/workflows/valgrind.yml index 3f77bb5762..df653c43e3 100644 --- a/.github/workflows/valgrind.yml +++ b/.github/workflows/valgrind.yml @@ -2,8 +2,8 @@ name: Ubuntu-valgrind # https://www.jeffgeerling.com/blog/2020/running-github-actions-workflow-on-schedule-and-other-events on: - push: pull_request: + types: [opened, reopened, synchronized] schedule: - cron: '0 2 * * SUN' diff --git a/.github/workflows/windows-clang.yaml b/.github/workflows/windows-clang.yaml index 6da3a39259..a216c19c64 100644 --- a/.github/workflows/windows-clang.yaml +++ b/.github/workflows/windows-clang.yaml @@ -1,7 +1,7 @@ name: Windows - clang on: pull_request: - push: + types: [opened, reopened, synchronized] # https://stackoverflow.com/questions/66335225/how-to-cancel-previous-runs-in-the-pr-when-you-push-new-commitsupdate-the-curre#comment133398800_72408109 # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency diff --git a/.github/workflows/windows-conda.yml b/.github/workflows/windows-conda.yml index 410d323c62..d8637b4833 100644 --- a/.github/workflows/windows-conda.yml +++ b/.github/workflows/windows-conda.yml @@ -1,6 +1,8 @@ name: Windows-conda-CI -on: [push,pull_request] +on: + pull_request: + types: [opened, reopened, synchronized] concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/windows-msvc.yaml b/.github/workflows/windows-msvc.yaml index 6a0e8940af..382aa2f2ca 100644 --- a/.github/workflows/windows-msvc.yaml +++ b/.github/workflows/windows-msvc.yaml @@ -1,7 +1,7 @@ name: Windows - Visual 2019 on: pull_request: - push: + types: [opened, reopened, synchronized] # https://stackoverflow.com/questions/66335225/how-to-cancel-previous-runs-in-the-pr-when-you-push-new-commitsupdate-the-curre#comment133398800_72408109 # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency