Skip to content

Commit 18dc4fa

Browse files
committed
[hibernate#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
1 parent c8e9248 commit 18dc4fa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/build.yml

+3
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ concurrency:
3131
jobs:
3232
run_examples:
3333
name: Run examples in '${{ matrix.example }}' on ${{ matrix.db }}
34+
if: ( github.event_name == 'schedule' && startsWith( github.ref, 'refs/heads/wip/' ) ) || ( github.event_name != 'schedule' )
3435
runs-on: ubuntu-latest
3536
strategy:
3637
matrix:
@@ -108,6 +109,7 @@ jobs:
108109

109110
test_dbs:
110111
name: Test with ${{ matrix.db }}
112+
if: ( github.event_name == 'schedule' && startsWith( github.ref, 'refs/heads/wip/' ) ) || ( github.event_name != 'schedule' )
111113
runs-on: ubuntu-latest
112114
strategy:
113115
matrix:
@@ -147,6 +149,7 @@ jobs:
147149

148150
test_jdks:
149151
name: Test with Java ${{ matrix.java.name }}
152+
if: ( github.event_name == 'schedule' && startsWith( github.ref, 'refs/heads/wip/' ) ) || ( github.event_name != 'schedule' )
150153
runs-on: ubuntu-latest
151154
strategy:
152155
fail-fast: false

0 commit comments

Comments
 (0)