From 784be9459af463f5d8dbaa431695dc08aef3a997 Mon Sep 17 00:00:00 2001 From: Miro Stauder Date: Mon, 30 Sep 2024 20:22:33 +0200 Subject: [PATCH] show correct run-name set correct concurrency group execute on dependency success --- .github/workflows/CI-3p-django-framework.yml | 4 +++- .github/workflows/CI-3p-laravel-framework.yml | 4 +++- .github/workflows/CI-3p-mariadb-connector-c.yml | 4 +++- .github/workflows/CI-3p-mysql-connector-j.yml | 4 +++- .github/workflows/CI-3p-php-pdo-mysql.yml | 4 +++- .github/workflows/CI-3p-sqlalchemy.yml | 4 +++- .github/workflows/CI-basictests.yml | 4 +++- .github/workflows/CI-builds.yml | 6 +----- .github/workflows/CI-codeql.yml | 4 +++- .github/workflows/CI-maketest.yml | 4 +++- .github/workflows/CI-package-build.yml | 8 ++------ .github/workflows/CI-repltests.yml | 4 +++- .github/workflows/CI-selftests.yml | 4 +++- .github/workflows/CI-shuntest.yml | 4 +++- .github/workflows/CI-taptests-asan.yml | 4 +++- .github/workflows/CI-taptests-groups.yml | 4 +++- .github/workflows/CI-taptests-ssl.yml | 4 +++- .github/workflows/CI-taptests.yml | 4 +++- 18 files changed, 51 insertions(+), 27 deletions(-) diff --git a/.github/workflows/CI-3p-django-framework.yml b/.github/workflows/CI-3p-django-framework.yml index 3dbdc670e..dc11bbdf6 100644 --- a/.github/workflows/CI-3p-django-framework.yml +++ b/.github/workflows/CI-3p-django-framework.yml @@ -1,4 +1,5 @@ name: CI-3p-django-framework +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: workflow_dispatch: @@ -7,11 +8,12 @@ on: types: [ completed ] 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: run: + 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: diff --git a/.github/workflows/CI-3p-laravel-framework.yml b/.github/workflows/CI-3p-laravel-framework.yml index 798b7248b..61a1fca70 100644 --- a/.github/workflows/CI-3p-laravel-framework.yml +++ b/.github/workflows/CI-3p-laravel-framework.yml @@ -1,4 +1,5 @@ name: CI-3p-laravel-framework +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: workflow_dispatch: @@ -7,11 +8,12 @@ on: types: [ completed ] 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: run: + 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: diff --git a/.github/workflows/CI-3p-mariadb-connector-c.yml b/.github/workflows/CI-3p-mariadb-connector-c.yml index 63f009142..9da4830ee 100644 --- a/.github/workflows/CI-3p-mariadb-connector-c.yml +++ b/.github/workflows/CI-3p-mariadb-connector-c.yml @@ -1,4 +1,5 @@ name: CI-3p-mariadb-connector-c +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: workflow_dispatch: @@ -7,11 +8,12 @@ on: types: [ completed ] 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: run: + if: ${{ github.event.workflow_run && github.event.workflow_run.conclusion == 'success' || ! github.event.workflow_run }} uses: sysown/proxysql/.github/workflows/ci-3p-mariadb-connector-c.yml@GH-Actions secrets: inherit with: diff --git a/.github/workflows/CI-3p-mysql-connector-j.yml b/.github/workflows/CI-3p-mysql-connector-j.yml index 41b1cd3a3..528432d83 100644 --- a/.github/workflows/CI-3p-mysql-connector-j.yml +++ b/.github/workflows/CI-3p-mysql-connector-j.yml @@ -1,4 +1,5 @@ name: CI-3p-mysql-connector-j +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: workflow_dispatch: @@ -7,11 +8,12 @@ on: types: [ completed ] 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: run: + if: ${{ github.event.workflow_run && github.event.workflow_run.conclusion == 'success' || ! github.event.workflow_run }} uses: sysown/proxysql/.github/workflows/ci-3p-mysql-connector-j.yml@GH-Actions secrets: inherit with: diff --git a/.github/workflows/CI-3p-php-pdo-mysql.yml b/.github/workflows/CI-3p-php-pdo-mysql.yml index 740407164..b79efb8c8 100644 --- a/.github/workflows/CI-3p-php-pdo-mysql.yml +++ b/.github/workflows/CI-3p-php-pdo-mysql.yml @@ -1,4 +1,5 @@ name: CI-3p-php-pdo-mysql +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: workflow_dispatch: @@ -7,11 +8,12 @@ on: types: [ completed ] 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: run: + if: ${{ github.event.workflow_run && github.event.workflow_run.conclusion == 'success' || ! github.event.workflow_run }} uses: sysown/proxysql/.github/workflows/ci-3p-php-pdo-mysql.yml@GH-Actions secrets: inherit with: diff --git a/.github/workflows/CI-3p-sqlalchemy.yml b/.github/workflows/CI-3p-sqlalchemy.yml index 48ddca1a4..ed11fcb81 100644 --- a/.github/workflows/CI-3p-sqlalchemy.yml +++ b/.github/workflows/CI-3p-sqlalchemy.yml @@ -1,4 +1,5 @@ name: CI-3p-sqlalchemy +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: workflow_dispatch: @@ -7,11 +8,12 @@ on: types: [ completed ] 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: run: + 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: diff --git a/.github/workflows/CI-basictests.yml b/.github/workflows/CI-basictests.yml index ecdf7d54e..ce1f2577d 100644 --- a/.github/workflows/CI-basictests.yml +++ b/.github/workflows/CI-basictests.yml @@ -1,4 +1,5 @@ name: CI-basictests +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: workflow_dispatch: @@ -7,11 +8,12 @@ on: types: [ completed ] 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: run: + if: ${{ github.event.workflow_run && github.event.workflow_run.conclusion == 'success' || ! github.event.workflow_run }} uses: sysown/proxysql/.github/workflows/ci-basictests.yml@GH-Actions secrets: inherit with: diff --git a/.github/workflows/CI-builds.yml b/.github/workflows/CI-builds.yml index 433e4d6a8..e14f8b170 100644 --- a/.github/workflows/CI-builds.yml +++ b/.github/workflows/CI-builds.yml @@ -1,12 +1,8 @@ name: CI-builds +run-name: '${{ github.ref_name }} ${{ github.workflow }} ${{ 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' - pull_request: # branches: [ 'v[0-9]+.x','v[0-9]+.[0-9]+','v[0-9]+.[0-9]+.[0-9]+' ] paths-ignore: - '.github/**' diff --git a/.github/workflows/CI-codeql.yml b/.github/workflows/CI-codeql.yml index e40a57e6f..7d5056881 100644 --- a/.github/workflows/CI-codeql.yml +++ b/.github/workflows/CI-codeql.yml @@ -1,4 +1,5 @@ name: CI-CodeQL +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: workflow_dispatch: @@ -7,11 +8,12 @@ on: types: [ completed ] 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: run: + if: ${{ github.event.workflow_run && github.event.workflow_run.conclusion == 'success' || ! github.event.workflow_run }} uses: sysown/proxysql/.github/workflows/ci-codeql.yml@GH-Actions secrets: inherit with: diff --git a/.github/workflows/CI-maketest.yml b/.github/workflows/CI-maketest.yml index 50804a600..151be6db9 100644 --- a/.github/workflows/CI-maketest.yml +++ b/.github/workflows/CI-maketest.yml @@ -1,4 +1,5 @@ name: CI-maketest +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: workflow_dispatch: @@ -7,11 +8,12 @@ on: types: [ completed ] 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: run: + if: ${{ github.event.workflow_run && github.event.workflow_run.conclusion == 'success' || ! github.event.workflow_run }} uses: sysown/proxysql/.github/workflows/ci-maketest.yml@GH-Actions secrets: inherit with: diff --git a/.github/workflows/CI-package-build.yml b/.github/workflows/CI-package-build.yml index 5cfa64110..2f1ab1182 100644 --- a/.github/workflows/CI-package-build.yml +++ b/.github/workflows/CI-package-build.yml @@ -1,4 +1,5 @@ -name: CI-Package-Build +name: CI-package-build +run-name: '${{ github.ref_name }} ${{ github.workflow }} ${{ github.sha }}' on: push: @@ -6,11 +7,6 @@ on: paths-ignore: - '.github/**' - '**.md' - pull_request: - 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: diff --git a/.github/workflows/CI-repltests.yml b/.github/workflows/CI-repltests.yml index 134a65e3f..49e1577f6 100644 --- a/.github/workflows/CI-repltests.yml +++ b/.github/workflows/CI-repltests.yml @@ -1,4 +1,5 @@ name: CI-repltests +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: workflow_dispatch: @@ -7,11 +8,12 @@ on: types: [ completed ] 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: run: + if: ${{ github.event.workflow_run && github.event.workflow_run.conclusion == 'success' || ! github.event.workflow_run }} uses: sysown/proxysql/.github/workflows/ci-repltests.yml@GH-Actions secrets: inherit with: diff --git a/.github/workflows/CI-selftests.yml b/.github/workflows/CI-selftests.yml index b0850e2a1..3a0ea7fd7 100644 --- a/.github/workflows/CI-selftests.yml +++ b/.github/workflows/CI-selftests.yml @@ -1,4 +1,5 @@ name: CI-selftests +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: workflow_dispatch: @@ -7,11 +8,12 @@ on: types: [ completed ] 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: run: + if: ${{ github.event.workflow_run && github.event.workflow_run.conclusion == 'success' || ! github.event.workflow_run }} uses: sysown/proxysql/.github/workflows/ci-selftests.yml@GH-Actions secrets: inherit with: diff --git a/.github/workflows/CI-shuntest.yml b/.github/workflows/CI-shuntest.yml index 5c8da34e1..89c326f64 100644 --- a/.github/workflows/CI-shuntest.yml +++ b/.github/workflows/CI-shuntest.yml @@ -1,4 +1,5 @@ name: CI-shuntest +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: workflow_dispatch: @@ -7,11 +8,12 @@ on: types: [ completed ] 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: run: + if: ${{ github.event.workflow_run && github.event.workflow_run.conclusion == 'success' || ! github.event.workflow_run }} uses: sysown/proxysql/.github/workflows/ci-shuntest.yml@GH-Actions secrets: inherit with: diff --git a/.github/workflows/CI-taptests-asan.yml b/.github/workflows/CI-taptests-asan.yml index 6b6b8de85..49902d1bb 100644 --- a/.github/workflows/CI-taptests-asan.yml +++ b/.github/workflows/CI-taptests-asan.yml @@ -1,4 +1,5 @@ name: CI-taptests-asan +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: workflow_dispatch: @@ -7,11 +8,12 @@ on: types: [ completed ] 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: run: + if: ${{ github.event.workflow_run && github.event.workflow_run.conclusion == 'success' || ! github.event.workflow_run }} uses: sysown/proxysql/.github/workflows/ci-taptests-asan.yml@GH-Actions secrets: inherit with: diff --git a/.github/workflows/CI-taptests-groups.yml b/.github/workflows/CI-taptests-groups.yml index 3e2249cee..1527d7d32 100644 --- a/.github/workflows/CI-taptests-groups.yml +++ b/.github/workflows/CI-taptests-groups.yml @@ -1,4 +1,5 @@ name: CI-taptests-groups +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: workflow_dispatch: @@ -7,11 +8,12 @@ on: types: [ completed ] 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: run: + if: ${{ github.event.workflow_run && github.event.workflow_run.conclusion == 'success' || ! github.event.workflow_run }} uses: sysown/proxysql/.github/workflows/ci-taptests-groups.yml@GH-Actions secrets: inherit with: diff --git a/.github/workflows/CI-taptests-ssl.yml b/.github/workflows/CI-taptests-ssl.yml index ca441c4e7..be0efa365 100644 --- a/.github/workflows/CI-taptests-ssl.yml +++ b/.github/workflows/CI-taptests-ssl.yml @@ -1,4 +1,5 @@ name: CI-taptests-ssl +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: workflow_dispatch: @@ -7,11 +8,12 @@ on: types: [ completed ] 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: run: + if: ${{ github.event.workflow_run && github.event.workflow_run.conclusion == 'success' || ! github.event.workflow_run }} uses: sysown/proxysql/.github/workflows/ci-taptests-ssl.yml@GH-Actions secrets: inherit with: diff --git a/.github/workflows/CI-taptests.yml b/.github/workflows/CI-taptests.yml index 69388cd3f..289d9790e 100644 --- a/.github/workflows/CI-taptests.yml +++ b/.github/workflows/CI-taptests.yml @@ -1,4 +1,5 @@ name: CI-taptests +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: workflow_dispatch: @@ -7,11 +8,12 @@ on: types: [ completed ] 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: run: + if: ${{ github.event.workflow_run && github.event.workflow_run.conclusion == 'success' || ! github.event.workflow_run }} uses: sysown/proxysql/.github/workflows/ci-taptests.yml@GH-Actions secrets: inherit with: