Skip to content

Commit 900cc1f

Browse files
authored
Split CI workflow to prevent schedule inactivity from pausing push/PR builds (#1629)
* 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> * Keep a single ci-5.x.yml file For CI builds triggered by pushes to supported branches or pull requests, we can have a single file that lists the branches. Signed-off-by: Thomas Segismont <tsegismont@gmail.com> --------- Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
1 parent 923d56a commit 900cc1f

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ on:
33
push:
44
branches:
55
- master
6+
- '5.[0-9]+'
67
pull_request:
78
branches:
89
- master
9-
schedule:
10-
- cron: '0 5 * * *'
10+
- '5.[0-9]+'
1111
jobs:
1212
CI-CD:
1313
uses: ./.github/workflows/ci-matrix-5.x.yml
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
name: vertx-sql-client (5.x-stable)
22
on:
3-
push:
4-
branches:
5-
- '5.[0-9]+'
6-
pull_request:
7-
branches:
8-
- '5.[0-9]+'
93
schedule:
104
- cron: '0 6 * * *'
115
jobs:
126
CI-CD:
137
uses: ./.github/workflows/ci-matrix-5.x.yml
148
secrets: inherit
159
with:
16-
branch: ${{ github.event_name == 'schedule' && vars.VERTX_5_STABLE_BRANCH || github.event.pull_request.head.sha || github.ref_name }}
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)