From 6f0493dec4bb7b1763aa8eef82a3e6516d986c77 Mon Sep 17 00:00:00 2001 From: Ryan Perry-Nguyen Date: Fri, 16 Sep 2022 06:41:11 -0400 Subject: [PATCH] ci: skip schema-check if hive token isn't available (#372) --- .github/workflows/ci.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 29f630e89..66922de6b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -21,11 +21,15 @@ jobs: --health-timeout 5s --health-retries 5 + outputs: + hive_token_present: ${{ steps.secrets_present.outputs.hive_token }} + env: POSTGRES_HOST: localhost POSTGRES_PORT: 5432 POSTGRES_PASSWORD: postgres POSTGRES_USER: postgres + HIVE_TOKEN: ${{ secrets.HIVE_TOKEN }} TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} TURBO_TEAM: ${{ secrets.TURBO_TEAM }} TURBO_API_URL: ${{ secrets.TURBO_API_URL }} @@ -67,6 +71,10 @@ jobs: path: '**/node_modules' key: ${{ github.sha }} + - name: Check for Presence of Repository Secrets + id: secrets_present + run: echo "::set-output name=hive_token::${{ env.HIVE_TOKEN != '' }}" + integration-tests: name: Integration Tests runs-on: ubuntu-latest @@ -192,6 +200,7 @@ jobs: name: Schema Check runs-on: ubuntu-latest needs: setup + if: needs.setup.outputs.hive_token_present == 'true' timeout-minutes: 5 env: