Skip to content

Commit

Permalink
Merge branch 'external-bouncer'
Browse files Browse the repository at this point in the history
  • Loading branch information
nemanjaglumac committed Oct 23, 2023
2 parents b04b4ed + 0adee42 commit 394f120
Show file tree
Hide file tree
Showing 2 changed files with 98 additions and 26 deletions.
107 changes: 81 additions & 26 deletions .github/workflows/drivers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
- 'release-**'
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
workflow_run:
workflows: [External Trigger Filter]
types: [completed]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
Expand All @@ -30,7 +33,9 @@ jobs:

be-tests-athena-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand All @@ -50,7 +55,9 @@ jobs:

be-tests-bigquery-cloud-sdk-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand All @@ -72,7 +79,9 @@ jobs:

be-tests-druid-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand All @@ -95,7 +104,9 @@ jobs:

be-tests-googleanalytics-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand All @@ -111,7 +122,9 @@ jobs:

be-google-related-drivers-classpath-test:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand All @@ -133,7 +146,9 @@ jobs:

be-tests-mariadb-10-2-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand All @@ -159,7 +174,9 @@ jobs:

be-tests-mariadb-latest-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand All @@ -185,7 +202,9 @@ jobs:

be-tests-mongo-4-4-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand All @@ -208,7 +227,9 @@ jobs:

be-tests-mongo-4-4-ssl-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand Down Expand Up @@ -243,7 +264,9 @@ jobs:

be-tests-mongo-5-0-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand All @@ -266,7 +289,9 @@ jobs:

be-tests-mongo-5-0-ssl-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand Down Expand Up @@ -301,7 +326,9 @@ jobs:

be-tests-mongo-latest-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand All @@ -327,7 +354,9 @@ jobs:

be-tests-mysql-5-7-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand All @@ -353,7 +382,9 @@ jobs:

be-tests-mysql-latest-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand Down Expand Up @@ -391,7 +422,9 @@ jobs:

be-tests-oracle-18-4-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand All @@ -418,7 +451,9 @@ jobs:

be-tests-oracle-21-3-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand Down Expand Up @@ -454,7 +489,9 @@ jobs:

be-tests-postgres-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand Down Expand Up @@ -484,7 +521,9 @@ jobs:

be-tests-postgres-latest-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand Down Expand Up @@ -517,7 +556,9 @@ jobs:

be-tests-presto-jdbc-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand Down Expand Up @@ -567,7 +608,9 @@ jobs:

be-tests-redshift-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand All @@ -587,7 +630,9 @@ jobs:

be-tests-snowflake-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand All @@ -609,7 +654,9 @@ jobs:

be-tests-sparksql-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand All @@ -630,7 +677,9 @@ jobs:

be-tests-sqlite-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand All @@ -646,7 +695,9 @@ jobs:

be-tests-sqlserver-2017-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand Down Expand Up @@ -674,7 +725,9 @@ jobs:

be-tests-sqlserver-2022-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand Down Expand Up @@ -702,7 +755,9 @@ jobs:

be-tests-vertica-ee:
needs: files-changed
if: github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true'
if: |
(github.event.pull_request.draft == false && needs.files-changed.outputs.backend_all == 'true') &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/external-filter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: External Trigger Filter

on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches:
- 'master'
paths-ignore:
- '.github/**'

jobs:
trigger:
runs-on: ubuntu-22.04
timeout-minutes: 5
if: github.event.pull_request.head.repo.full_name != github.repository
steps:
- run: echo 'Thank you for your contribution to Metabase!'

0 comments on commit 394f120

Please sign in to comment.