Skip to content

Commit

Permalink
make postgres GH action conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
mirostauder authored Dec 17, 2024
1 parent 7c64542 commit c86fcb7
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/CI-3p-postgresql.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit c86fcb7

Please sign in to comment.