File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -123,13 +123,23 @@ jobs:
123123 steps :
124124 - name : Checkout Repository
125125 uses : actions/checkout@v4
126- - name : Run `hasura metadata reload`
126+ - name : Run `hasura metadata reload` on ${{needs.env.outputs.HASURA_HOST}}
127+ if : ${{github.ref_name == 'master'}}
127128 uses : browniefed/hasura-runner@master
128129 with :
129130 args : metadata reload
130131 env :
131132 HASURA_ENDPOINT : https://${{needs.env.outputs.HASURA_HOST}}
132- HASURA_GRAPHQL_ADMIN_SECRET : ${{github.ref_name == 'master' && ${{secrets.HASURA_PROD_SECRET}} || ${{secrets.HASURA_DEV_SECRET}}}}
133+ HASURA_GRAPHQL_ADMIN_SECRET : ${{secrets.HASURA_PROD_SECRET}}
134+ PATH_TO_HASURA_PROJECT_ROOT : ./hasura
135+ - name : Run `hasura metadata reload` on ${{needs.env.outputs.HASURA_HOST}}
136+ if : ${{github.ref_name != 'master'}}
137+ uses : browniefed/hasura-runner@master
138+ with :
139+ args : metadata reload
140+ env :
141+ HASURA_ENDPOINT : https://${{needs.env.outputs.HASURA_HOST}}
142+ HASURA_GRAPHQL_ADMIN_SECRET : ${{secrets.HASURA_DEV_SECRET}}
133143 PATH_TO_HASURA_PROJECT_ROOT : ./hasura
134144
135145 build-frontend :
You can’t perform that action at this time.
0 commit comments