Skip to content

Commit 322fee4

Browse files
committed
add destination tests with authorize step
1 parent 0e6068c commit 322fee4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/master.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,17 @@ on:
66

77
jobs:
88

9+
# checks wether anything outside docs has changed, if not, most of the tests can be skipped
910
get_docs_changes:
1011
name: docs changes
1112
uses: ./.github/workflows/get_docs_changes.yml
1213

14+
# if the PR is from a fork, we need to authorize the secrets access and remote destinations run with a lable
15+
authorize_secrets_access:
16+
# run when label is assigned OR when we are not a fork
17+
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'))}}
18+
runs-on: ubuntu-latest
19+
1320
lint:
1421
name: lint
1522
needs: get_docs_changes
@@ -23,3 +30,7 @@ jobs:
2330
test_local_destinations:
2431
needs: test_common
2532
uses: ./.github/workflows/test_destinations_local.yml
33+
34+
test_destinations:
35+
needs: [test_common, authorize_secrets_access]
36+
uses: ./.github/workflows/test_destinations.yml

0 commit comments

Comments
 (0)