Skip to content

Commit

Permalink
Merge pull request #4692 from sysown/v2.7-update_actions_triggers_v2
Browse files Browse the repository at this point in the history
V2.7 update actions triggers v3
  • Loading branch information
renecannao authored Oct 2, 2024
2 parents aba1e05 + a262473 commit 4e85540
Show file tree
Hide file tree
Showing 18 changed files with 94 additions and 28 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/CI-3p-django-framework.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,37 @@ run-name: '${{ github.event.workflow_run && github.event.workflow_run.head_branc
on:
workflow_dispatch:
workflow_run:
workflows: [ CI-builds ]
workflows: [ CI-trigger ]
types: [ completed ]

concurrency:
group: ${{ github.workflow }}-${{ github.event.workflow_run && github.event.workflow_run.head_branch || github.ref_name }}
cancel-in-progress: true

jobs:
run:
run-mysql:
if: ${{ github.event.workflow_run && github.event.workflow_run.conclusion == 'success' || ! github.event.workflow_run }}
uses: sysown/proxysql/.github/workflows/ci-3p-django-framework.yml@GH-Actions
secrets: inherit
with:
trigger: ${{ toJson(github) }}
infradb: ${{ vars.MATRIX_3P_SQLALCHEMY_infradb_mysql }}
connector: ${{ vars.MATRIX_3P_SQLALCHEMY_connector_mysql }}

run-mariadb:
if: ${{ github.event.workflow_run && github.event.workflow_run.conclusion == 'success' || ! github.event.workflow_run }}
uses: sysown/proxysql/.github/workflows/ci-3p-django-framework.yml@GH-Actions
secrets: inherit
with:
trigger: ${{ toJson(github) }}
infradb: ${{ vars.MATRIX_3P_SQLALCHEMY_infradb_mariadb }}
connector: ${{ vars.MATRIX_3P_SQLALCHEMY_connector_mariadb }}

run-pgsql:
if: ${{ github.event.workflow_run && github.event.workflow_run.conclusion == 'success' || ! github.event.workflow_run }}
uses: sysown/proxysql/.github/workflows/ci-3p-django-framework.yml@GH-Actions
secrets: inherit
with:
trigger: ${{ toJson(github) }}
infradb: ${{ vars.MATRIX_3P_SQLALCHEMY_infradb_pgsql }}
connector: ${{ vars.MATRIX_3P_SQLALCHEMY_connector_pgsql }}
20 changes: 18 additions & 2 deletions .github/workflows/CI-3p-laravel-framework.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,35 @@ run-name: '${{ github.event.workflow_run && github.event.workflow_run.head_branc
on:
workflow_dispatch:
workflow_run:
workflows: [ CI-builds ]
workflows: [ CI-trigger ]
types: [ completed ]

concurrency:
group: ${{ github.workflow }}-${{ github.event.workflow_run && github.event.workflow_run.head_branch || github.ref_name }}
cancel-in-progress: true

jobs:
run:
run-mysql:
if: ${{ github.event.workflow_run && github.event.workflow_run.conclusion == 'success' || ! github.event.workflow_run }}
uses: sysown/proxysql/.github/workflows/ci-3p-laravel-framework.yml@GH-Actions
secrets: inherit
with:
trigger: ${{ toJson(github) }}
infradb: ${{ vars.MATRIX_3P_SQLALCHEMY_infradb_mysql }}
connector: ${{ vars.MATRIX_3P_SQLALCHEMY_connector_mysql }}
run-mariadb:
if: ${{ github.event.workflow_run && github.event.workflow_run.conclusion == 'success' || ! github.event.workflow_run }}
uses: sysown/proxysql/.github/workflows/ci-3p-laravel-framework.yml@GH-Actions
secrets: inherit
with:
trigger: ${{ toJson(github) }}
infradb: ${{ vars.MATRIX_3P_SQLALCHEMY_infradb_mariadb }}
connector: ${{ vars.MATRIX_3P_SQLALCHEMY_connector_mariadb }}
run-pgsql:
if: ${{ github.event.workflow_run && github.event.workflow_run.conclusion == 'success' || ! github.event.workflow_run }}
uses: sysown/proxysql/.github/workflows/ci-3p-laravel-framework.yml@GH-Actions
secrets: inherit
with:
trigger: ${{ toJson(github) }}
infradb: ${{ vars.MATRIX_3P_SQLALCHEMY_infradb_pgsql }}
connector: ${{ vars.MATRIX_3P_SQLALCHEMY_connector_pgsql }}
2 changes: 1 addition & 1 deletion .github/workflows/CI-3p-mariadb-connector-c.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ run-name: '${{ github.event.workflow_run && github.event.workflow_run.head_branc
on:
workflow_dispatch:
workflow_run:
workflows: [ CI-builds ]
workflows: [ CI-trigger ]
types: [ completed ]

concurrency:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/CI-3p-mysql-connector-j.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ run-name: '${{ github.event.workflow_run && github.event.workflow_run.head_branc
on:
workflow_dispatch:
workflow_run:
workflows: [ CI-builds ]
workflows: [ CI-trigger ]
types: [ completed ]

concurrency:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/CI-3p-php-pdo-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ run-name: '${{ github.event.workflow_run && github.event.workflow_run.head_branc
on:
workflow_dispatch:
workflow_run:
workflows: [ CI-builds ]
workflows: [ CI-trigger ]
types: [ completed ]

concurrency:
Expand Down
22 changes: 20 additions & 2 deletions .github/workflows/CI-3p-sqlalchemy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,37 @@ run-name: '${{ github.event.workflow_run && github.event.workflow_run.head_branc
on:
workflow_dispatch:
workflow_run:
workflows: [ CI-builds ]
workflows: [ CI-trigger ]
types: [ completed ]

concurrency:
group: ${{ github.workflow }}-${{ github.event.workflow_run && github.event.workflow_run.head_branch || github.ref_name }}
cancel-in-progress: true

jobs:
run:
run-mysql:
if: ${{ github.event.workflow_run && github.event.workflow_run.conclusion == 'success' || ! github.event.workflow_run }}
uses: sysown/proxysql/.github/workflows/ci-3p-sqlalchemy.yml@GH-Actions
secrets: inherit
with:
trigger: ${{ toJson(github) }}
infradb: ${{ vars.MATRIX_3P_SQLALCHEMY_infradb_mysql }}
connector: ${{ vars.MATRIX_3P_SQLALCHEMY_connector_mysql }}

run-mariadb:
if: ${{ github.event.workflow_run && github.event.workflow_run.conclusion == 'success' || ! github.event.workflow_run }}
uses: sysown/proxysql/.github/workflows/ci-3p-sqlalchemy.yml@GH-Actions
secrets: inherit
with:
trigger: ${{ toJson(github) }}
infradb: ${{ vars.MATRIX_3P_SQLALCHEMY_infradb_mariadb }}
connector: ${{ vars.MATRIX_3P_SQLALCHEMY_connector_mariadb }}

run-pgsql:
if: ${{ github.event.workflow_run && github.event.workflow_run.conclusion == 'success' || ! github.event.workflow_run }}
uses: sysown/proxysql/.github/workflows/ci-3p-sqlalchemy.yml@GH-Actions
secrets: inherit
with:
trigger: ${{ toJson(github) }}
infradb: ${{ vars.MATRIX_3P_SQLALCHEMY_infradb_pgsql }}
connector: ${{ vars.MATRIX_3P_SQLALCHEMY_connector_pgsql }}
2 changes: 1 addition & 1 deletion .github/workflows/CI-basictests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ run-name: '${{ github.event.workflow_run && github.event.workflow_run.head_branc
on:
workflow_dispatch:
workflow_run:
workflows: [ CI-builds ]
workflows: [ CI-trigger ]
types: [ completed ]

concurrency:
Expand Down
14 changes: 5 additions & 9 deletions .github/workflows/CI-builds.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
name: CI-builds
run-name: '${{ github.ref_name }} ${{ github.workflow }} ${{ github.sha }}'
run-name: '${{ github.event.workflow_run && github.event.workflow_run.head_branch || github.ref_name }} ${{ github.workflow }} ${{ github.event.workflow_run && github.event.workflow_run.head_sha || github.sha }}'

on:
push:
# branches: [ 'v[0-9]+.x','v[0-9]+.[0-9]+','v[0-9]+.[0-9]+.[0-9]+' ]
paths-ignore:
- '.github/**'
- '**.md'
# schedule:
# - cron: '15 13 * * 3'
workflow_dispatch:
workflow_run:
workflows: [ CI-trigger ]
types: [ in_progress ]

concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
group: ${{ github.workflow }}-${{ github.event.workflow_run && github.event.workflow_run.head_branch || github.ref_name }}
cancel-in-progress: true

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/CI-codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ run-name: '${{ github.event.workflow_run && github.event.workflow_run.head_branc
on:
workflow_dispatch:
workflow_run:
workflows: [ CI-builds ]
workflows: [ CI-trigger ]
types: [ completed ]

concurrency:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/CI-maketest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ run-name: '${{ github.event.workflow_run && github.event.workflow_run.head_branc
on:
workflow_dispatch:
workflow_run:
workflows: [ CI-builds ]
workflows: [ CI-trigger ]
types: [ completed ]

concurrency:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/CI-repltests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ run-name: '${{ github.event.workflow_run && github.event.workflow_run.head_branc
on:
workflow_dispatch:
workflow_run:
workflows: [ CI-builds ]
workflows: [ CI-trigger ]
types: [ completed ]

concurrency:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/CI-selftests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ run-name: '${{ github.event.workflow_run && github.event.workflow_run.head_branc
on:
workflow_dispatch:
workflow_run:
workflows: [ CI-builds ]
workflows: [ CI-trigger ]
types: [ completed ]

concurrency:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/CI-shuntest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ run-name: '${{ github.event.workflow_run && github.event.workflow_run.head_branc
on:
workflow_dispatch:
workflow_run:
workflows: [ CI-builds ]
workflows: [ CI-trigger ]
types: [ completed ]

concurrency:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/CI-taptests-asan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ run-name: '${{ github.event.workflow_run && github.event.workflow_run.head_branc
on:
workflow_dispatch:
workflow_run:
workflows: [ CI-builds ]
workflows: [ CI-trigger ]
types: [ completed ]

concurrency:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/CI-taptests-groups.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ run-name: '${{ github.event.workflow_run && github.event.workflow_run.head_branc
on:
workflow_dispatch:
workflow_run:
workflows: [ CI-builds ]
workflows: [ CI-trigger ]
types: [ completed ]

concurrency:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/CI-taptests-ssl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ run-name: '${{ github.event.workflow_run && github.event.workflow_run.head_branc
on:
workflow_dispatch:
workflow_run:
workflows: [ CI-builds ]
workflows: [ CI-trigger ]
types: [ completed ]

concurrency:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/CI-taptests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ run-name: '${{ github.event.workflow_run && github.event.workflow_run.head_branc
on:
workflow_dispatch:
workflow_run:
workflows: [ CI-builds ]
workflows: [ CI-trigger ]
types: [ completed ]

concurrency:
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/CI-trigger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: CI-trigger
run-name: '${{ github.ref_name }} ${{ github.workflow }} ${{ github.sha }}'

on:
push:
paths-ignore:
- '.github/**'
- '**.md'
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true

jobs:
run:
uses: sysown/proxysql/.github/workflows/ci-trigger.yml@GH-Actions
secrets: inherit

0 comments on commit 4e85540

Please sign in to comment.