From 4df3e01d782da47415b82f9ca36b924ec85bc2b4 Mon Sep 17 00:00:00 2001 From: Tyler Graff Date: Wed, 27 Mar 2024 17:13:34 -0400 Subject: [PATCH] provide mechanism to avoid cloud-provider CI/CD test via repo-scoped variable --- .github/workflows/test-provider.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-provider.yaml b/.github/workflows/test-provider.yaml index 717a332482..f9ff808c8d 100644 --- a/.github/workflows/test-provider.yaml +++ b/.github/workflows/test-provider.yaml @@ -32,8 +32,10 @@ on: jobs: test-render-providers: - # avoid running on PRs coming from a fork - if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request' + # Mechanism to prevent this test from running + # - on forks whose maintainers specify that provider credentials are absent (by setting env NO_PROVIDER_CREDENTIALS) + # - on PRs coming from a fork (in which case the destination fork's provider credentials do not currently work) + if: ${{ env.NO_PROVIDER_CREDENTIALS == '' }} && (github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request') name: "Test Nebari Provider" runs-on: ubuntu-latest permissions: