From 6901ce8e626fde3c603e95411735a3f09fa85add Mon Sep 17 00:00:00 2001 From: Davide D'Alto Date: Thu, 8 Aug 2024 09:52:12 +0200 Subject: [PATCH] [#1973] Disable schedule cron job for main We don't build with snapshots on main, so there's no need to build it every hour --- .github/workflows/build.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1a5e4b839f..7a01b0dfb7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,6 +31,7 @@ concurrency: jobs: run_examples: name: Run examples in '${{ matrix.example }}' on ${{ matrix.db }} + if: ( github.event_name == 'schedule' && startsWith( github.ref, 'refs/heads/wip/' ) ) || ( github.event_name != 'schedule' ) runs-on: ubuntu-latest strategy: matrix: @@ -108,6 +109,7 @@ jobs: test_dbs: name: Test with ${{ matrix.db }} + if: ( github.event_name == 'schedule' && startsWith( github.ref, 'refs/heads/wip/' ) ) || ( github.event_name != 'schedule' ) runs-on: ubuntu-latest strategy: matrix: @@ -147,6 +149,7 @@ jobs: test_jdks: name: Test with Java ${{ matrix.java.name }} + if: ( github.event_name == 'schedule' && startsWith( github.ref, 'refs/heads/wip/' ) ) || ( github.event_name != 'schedule' ) runs-on: ubuntu-latest strategy: fail-fast: false