Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rfix/runs forks on label #248

Closed
wants to merge 14 commits into from
Closed
2 changes: 1 addition & 1 deletion .github/workflows/test_on_local_destinations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
if: ${{ !github.event.pull_request.head.repo.fork }}

run_loader:
name: test destinations redshift, postgres and duckdb
name: test destinations postgres and duckdb
needs: get_changed_sources
if: needs.get_changed_sources.outputs.sources_list != ''
strategy:
Expand Down
18 changes: 17 additions & 1 deletion .github/workflows/test_on_local_destinations_forks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@
name: test sources on postgres and duckdb on forks

on:
pull_request:
pull_request_target:
branches:
- master
- devel
types:
- opened
- synchronize
- labeled
workflow_dispatch:

env:
Expand All @@ -14,7 +18,17 @@ env:
RUNTIME__LOG_LEVEL: ERROR

jobs:
authorize:
# run when label is assigned OR when we are in loca
if: ${{ github.event.label.name == 'ci from fork' || (github.event.pull_request.head.repo.full_name == github.repository && (github.event.action == 'opened' || github.event.action == 'synchronize'))}}
# environment:
# ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository && 'external' || 'internal' }}
runs-on: ubuntu-latest
steps:
- run: true

get_changed_sources:
needs: authorize
uses: ./.github/workflows/get_changed_sources.yml
# run only on fork
# if: ${{ github.event.pull_request.head.repo.fork }}
Expand Down Expand Up @@ -54,6 +68,8 @@ jobs:
steps:
- name: Check out
uses: actions/checkout@master
with:
ref: ${{ github.event.pull_request.head.sha || github.ref }}

- name: Setup Python
uses: actions/setup-python@v1
Expand Down
Loading