Skip to content

Commit 3030f18

Browse files
author
Keith Halsall
committed
Update contract router URL
1 parent 8d534d6 commit 3030f18

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/create_studio_project.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,20 @@ jobs:
6868
--url 'https://graphql.api.apollographql.com/api/graphql' \
6969
--data '{"query":"mutation UpdateURL($name: String!, $graphId: ID!, $url: String) {\n graph(id: $graphId) {\n variant(name: $name) {\n updateURL(url: $url) {\n createdAt\n }\n }\n }\n}","variables":{"name":"current","graphId":"${{vars.ACTOR}}${{ env.GEN }}","url":"${{ env.URL }}"}}'
7070
71+
- name: Get Contract Router URL
72+
run: |
73+
gcloud run services describe ${{vars.ACTOR}}-contractRouter --region us-central1 --format 'value(status.url)' > contractURL.json
74+
echo "contractURL=$(cat contractURL.json)" >> $GITHUB_ENV
75+
76+
- name: Set URL
77+
run: |
78+
curl --request POST \
79+
--header 'content-type: application/json' \
80+
--header 'X-API-Key: ${{ secrets.APOLLO_USER_KEY }}' \
81+
--url 'https://graphql.api.apollographql.com/api/graphql' \
82+
--data '{"query":"mutation UpdateURL($name: String!, $graphId: ID!, $url: String) {\n graph(id: $graphId) {\n variant(name: $name) {\n updateURL(url: $url) {\n createdAt\n }\n }\n }\n}","variables":{"name":"public","graphId":"${{vars.ACTOR}}${{ env.GEN }}","url":"${{ env.URL }}"}}'
83+
84+
7185
- name: Set Subscription URL
7286
run: |
7387
curl --request POST \

0 commit comments

Comments
 (0)