diff --git a/.github/workflows/ci-5.x.yml b/.github/workflows/ci-5.x.yml index 3cecb6fe8d..fdf920808e 100644 --- a/.github/workflows/ci-5.x.yml +++ b/.github/workflows/ci-5.x.yml @@ -3,11 +3,11 @@ on: push: branches: - master + - '5.[0-9]+' pull_request: branches: - master - schedule: - - cron: '0 5 * * *' + - '5.[0-9]+' jobs: CI-CD: uses: ./.github/workflows/ci-matrix-5.x.yml diff --git a/.github/workflows/ci-4.x.yml b/.github/workflows/schedule-4.x.yml similarity index 100% rename from .github/workflows/ci-4.x.yml rename to .github/workflows/schedule-4.x.yml diff --git a/.github/workflows/ci-5.x-stable.yml b/.github/workflows/schedule-5.x-stable.yml similarity index 58% rename from .github/workflows/ci-5.x-stable.yml rename to .github/workflows/schedule-5.x-stable.yml index 4fc9e7f252..584aca87a1 100644 --- a/.github/workflows/ci-5.x-stable.yml +++ b/.github/workflows/schedule-5.x-stable.yml @@ -1,11 +1,5 @@ name: vertx-sql-client (5.x-stable) on: - push: - branches: - - '5.[0-9]+' - pull_request: - branches: - - '5.[0-9]+' schedule: - cron: '0 6 * * *' jobs: @@ -13,4 +7,4 @@ jobs: uses: ./.github/workflows/ci-matrix-5.x.yml secrets: inherit with: - branch: ${{ github.event_name == 'schedule' && vars.VERTX_5_STABLE_BRANCH || github.event.pull_request.head.sha || github.ref_name }} + branch: ${{ github.event_name == 'schedule' && vars.VERTX_5_STABLE_BRANCH || github.ref_name }} diff --git a/.github/workflows/schedule-5.x.yml b/.github/workflows/schedule-5.x.yml new file mode 100644 index 0000000000..c1a35913e1 --- /dev/null +++ b/.github/workflows/schedule-5.x.yml @@ -0,0 +1,10 @@ +name: vertx-sql-client (5.x) +on: + schedule: + - cron: '0 5 * * *' +jobs: + CI-CD: + uses: ./.github/workflows/ci-matrix-5.x.yml + secrets: inherit + with: + branch: ${{ github.ref_name }}