File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -132,16 +132,18 @@ jobs:
132132 type : string
133133 hasura-endpoint :
134134 type : string
135+ next_api_bearer_token :
136+ type : string
135137 steps :
136138 - checkout
137139 - run :
138140 name : Apply migrations
139141 working_directory : hasura
140- command : hasura-cli migrate apply --admin-secret << parameters.hasura-admin-secret >> --endpoint << parameters.hasura-endpoint >>
142+ command : NEXT_API_BEARER_TOKEN=<< parameters.next_api_bearer_token >> hasura-cli migrate apply --admin-secret << parameters.hasura-admin-secret >> --endpoint << parameters.hasura-endpoint >>
141143 - run :
142144 name : Apply metadata
143145 working_directory : hasura
144- command : hasura-cli metadata apply --admin-secret << parameters.hasura-admin-secret >> --endpoint << parameters.hasura-endpoint >>
146+ command : NEXT_API_BEARER_TOKEN=<< parameters.next_api_bearer_token >> hasura-cli metadata apply --admin-secret << parameters.hasura-admin-secret >> --endpoint << parameters.hasura-endpoint >>
145147 deploy :
146148 executor : node
147149 parameters :
@@ -242,6 +244,7 @@ workflows:
242244 name : run-migrations-staging
243245 hasura-admin-secret : $HASURA_ADMIN_SECRET_STAGING
244246 hasura-endpoint : $HASURA_ENDPOINT_STAGING
247+ next_api_bearer_token : $NEXT_API_BEARER_TOKEN
245248 requires :
246249 - deploy-hasura-staging
247250 filters : *deploy-staging-filters
@@ -290,6 +293,7 @@ workflows:
290293 name : run-migrations
291294 hasura-admin-secret : $HASURA_ADMIN_SECRET_PROD
292295 hasura-endpoint : $HASURA_ENDPOINT_PROD
296+ next_api_bearer_token : $NEXT_API_BEARER_TOKEN
293297 requires :
294298 - deploy-hasura
295299 filters : *deploy-filters
You can’t perform that action at this time.
0 commit comments