From 9360fc652becde2645cb23bdf303bacda0189d72 Mon Sep 17 00:00:00 2001 From: dysbulic Date: Thu, 4 Jul 2024 12:47:03 -0400 Subject: [PATCH] =?UTF-8?q?conditionally=20setting=20secret=20=F0=9F=93=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/gcp-deploy-frontend.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gcp-deploy-frontend.yaml b/.github/workflows/gcp-deploy-frontend.yaml index 4eb090d29..b2a123944 100644 --- a/.github/workflows/gcp-deploy-frontend.yaml +++ b/.github/workflows/gcp-deploy-frontend.yaml @@ -129,7 +129,7 @@ jobs: args: metadata reload env: HASURA_ENDPOINT: https://${{needs.env.outputs.HASURA_HOST}} - HASURA_GRAPHQL_ADMIN_SECRET: ${{needs.env.outputs.HASURA_ADMIN_SECRET}} + HASURA_GRAPHQL_ADMIN_SECRET: ${{github.ref_name == 'master' && ${{secrets.HASURA_PROD_SECRET}} || ${{secrets.HASURA_DEV_SECRET}}}} PATH_TO_HASURA_PROJECT_ROOT: ./hasura build-frontend: