Skip to content

Commit

Permalink
show correct run-name
Browse files Browse the repository at this point in the history
set correct concurrency group
execute on dependency success
  • Loading branch information
mirostauder authored Sep 30, 2024
1 parent db198c8 commit 784be94
Show file tree
Hide file tree
Showing 18 changed files with 51 additions and 27 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/CI-3p-django-framework.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/CI-3p-laravel-framework.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/CI-3p-mariadb-connector-c.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/CI-3p-mysql-connector-j.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/CI-3p-php-pdo-mysql.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/CI-3p-sqlalchemy.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/CI-basictests.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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:
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/CI-builds.yml
Original file line number Diff line number Diff line change
@@ -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/**'
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/CI-codeql.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/CI-maketest.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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:
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/CI-package-build.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
name: CI-Package-Build
name: CI-package-build
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/**'
- '**.md'
# schedule:
# - cron: '15 13 * * 3'
workflow_dispatch:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/CI-repltests.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/CI-selftests.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/CI-shuntest.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/CI-taptests-asan.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/CI-taptests-groups.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/CI-taptests-ssl.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/CI-taptests.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 784be94

Please sign in to comment.