From c86fcb75ebc37fa19c8c587ad3c5dc57694738bb Mon Sep 17 00:00:00 2001 From: Miro Stauder Date: Tue, 17 Dec 2024 10:58:10 +0100 Subject: [PATCH] make postgres GH action conditional --- .github/workflows/CI-3p-postgresql.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/CI-3p-postgresql.yml diff --git a/.github/workflows/CI-3p-postgresql.yml b/.github/workflows/CI-3p-postgresql.yml new file mode 100644 index 000000000..b31823f58 --- /dev/null +++ b/.github/workflows/CI-3p-postgresql.yml @@ -0,0 +1,24 @@ +name: CI-3p-postgresql +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: + workflow_run: + 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: + if: | + ${{ (github.event.workflow_run && github.event.workflow_run.conclusion == 'success' || ! github.event.workflow_run) && + startsWith(github.event.workflow_run && github.event.workflow_run.head_branch || github.ref_name, 'v3.') }} + uses: sysown/proxysql/.github/workflows/ci-3p-postgresql.yml@GH-Actions + secrets: inherit + with: + trigger: ${{ toJson(github) }} + infradb: ${{ vars.MATRIX_3P_POSTGRESQL_infradb_pgsql }} + connector: ${{ vars.MATRIX_3P_POSTGRESQL_connector_pgsql }}