Skip to content

Commit 6337d1c

Browse files
committed
Split CI workflow to prevent schedule inactivity from pausing push/PR builds
See vert-x3/issues#665 Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
1 parent 923d56a commit 6337d1c

5 files changed

Lines changed: 21 additions & 5 deletions

File tree

.github/workflows/ci-5.x-stable.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@ on:
66
pull_request:
77
branches:
88
- '5.[0-9]+'
9-
schedule:
10-
- cron: '0 6 * * *'
119
jobs:
1210
CI-CD:
1311
uses: ./.github/workflows/ci-matrix-5.x.yml
1412
secrets: inherit
1513
with:
16-
branch: ${{ github.event_name == 'schedule' && vars.VERTX_5_STABLE_BRANCH || github.event.pull_request.head.sha || github.ref_name }}
14+
branch: ${{ github.event.pull_request.head.sha || github.ref_name }}

.github/workflows/ci-5.x.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ on:
66
pull_request:
77
branches:
88
- master
9-
schedule:
10-
- cron: '0 5 * * *'
119
jobs:
1210
CI-CD:
1311
uses: ./.github/workflows/ci-matrix-5.x.yml
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: vertx-sql-client (5.x-stable)
2+
on:
3+
schedule:
4+
- cron: '0 6 * * *'
5+
jobs:
6+
CI-CD:
7+
uses: ./.github/workflows/ci-matrix-5.x.yml
8+
secrets: inherit
9+
with:
10+
branch: ${{ github.event_name == 'schedule' && vars.VERTX_5_STABLE_BRANCH || github.ref_name }}

.github/workflows/schedule-5.x.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: vertx-sql-client (5.x)
2+
on:
3+
schedule:
4+
- cron: '0 5 * * *'
5+
jobs:
6+
CI-CD:
7+
uses: ./.github/workflows/ci-matrix-5.x.yml
8+
secrets: inherit
9+
with:
10+
branch: ${{ github.ref_name }}

0 commit comments

Comments
 (0)