Skip to content

Commit d3d43d6

Browse files
authored
[WORKFLOWS] Make Subgraph deployment more explicit (#1347)
1 parent 5bd478b commit d3d43d6

5 files changed

+10
-10
lines changed

.github/workflows/call.deploy-hosted-service-subgraph.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
network:
1111
required: true
1212
type: string
13-
description: 'The network you want to deploy to (matic, xdai, eth-mainnet, etc.) or "" for all networks.'
13+
description: 'The network you want to deploy to (matic, xdai, eth-mainnet, etc.) or `all` for all networks.'
1414
secrets:
1515
THE_GRAPH_ACCESS_TOKEN:
1616
description: 'The Graph access token for deploying subgraphs'
@@ -88,14 +88,14 @@ jobs:
8888
fi
8989
9090
- name: "Deploy to All Hosted Subgraph Superfluid endpoints"
91-
if: inputs.network == ''
91+
if: inputs.network == 'all'
9292
run: ./tasks/deploy-all-hosted-service-networks.sh ${{ inputs.release_branch }}
9393
working-directory: ${{ env.subgraph-working-directory }}
9494
env:
9595
THE_GRAPH_ACCESS_TOKEN: ${{ secrets.THE_GRAPH_ACCESS_TOKEN }}
9696

9797
- name: "Deploy to Hosted Subgraph Superfluid endpoint"
98-
if: inputs.network != ''
98+
if: inputs.network != 'all'
9999
run: ./tasks/deploy-to-hosted-service-network.sh ${{ inputs.release_branch }} ${{ inputs.network }}
100100
working-directory: ${{ env.subgraph-working-directory }}
101101
env:

.github/workflows/call.deploy-satsuma-subgraph.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
network:
77
required: true
88
type: string
9-
description: 'The network you want to deploy to (matic, xdai, eth-mainnet, etc.) or "" for all networks.'
9+
description: 'The network you want to deploy to (matic, xdai, eth-mainnet, etc.) or `all` for all networks.'
1010
satsuma_version_label:
1111
required: true
1212
type: string
@@ -82,7 +82,7 @@ jobs:
8282
working-directory: ${{ env.subgraph-working-directory }}
8383

8484
- name: "Deploy to All Satsuma endpoints"
85-
if: inputs.network == ''
85+
if: inputs.network == 'all'
8686
run: |
8787
shortRev=$(git rev-parse --short ${{ github.sha }})
8888
versionLabel=${{ inputs.satsuma_version_label }}-${shortRev}
@@ -92,7 +92,7 @@ jobs:
9292
SATSUMA_DEPLOY_KEY: ${{ secrets.SATSUMA_DEPLOY_KEY }}
9393

9494
- name: "Deploy to Satsuma endpoint"
95-
if: inputs.network != ''
95+
if: inputs.network != 'all'
9696
run: |
9797
shortRev=$(git rev-parse --short ${{ github.sha }})
9898
versionLabel=${{ inputs.satsuma_version_label }}-${shortRev}

.github/workflows/handler.deploy-hosted-service-subgraph.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919
network:
2020
required: true
2121
type: string
22-
description: 'The network you want to deploy to (matic, xdai, eth-mainnet, etc.) or "" for all networks.'
22+
description: 'The network you want to deploy to (matic, xdai, eth-mainnet, etc.) or `all` for all networks.'
2323
jobs:
2424
build-and-test-local-subgraph:
2525
uses: ./.github/workflows/call.test-local-subgraph.yml

.github/workflows/handler.deploy-production-subgraphs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
name: Deploy Hosted Service Subgraph
3838
with:
3939
release_branch: "v1"
40-
network: ""
40+
network: "all"
4141
secrets:
4242
THE_GRAPH_ACCESS_TOKEN: ${{ secrets.THE_GRAPH_ACCESS_TOKEN }}
4343

@@ -50,6 +50,6 @@ jobs:
5050
name: Deploy Satsuma Subgraph
5151
with:
5252
satsuma_version_label: ${{ github.event.inputs.satsuma_version_label }}
53-
network: ""
53+
network: "all"
5454
secrets:
5555
SATSUMA_DEPLOY_KEY: ${{ secrets.SATSUMA_DEPLOY_KEY }}

.github/workflows/handler.deploy-satsuma-subgraph.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818
network:
1919
required: true
2020
type: string
21-
description: 'The network you want to deploy to (matic, xdai, eth-mainnet, etc.) or "" for all networks.'
21+
description: 'The network you want to deploy to (matic, xdai, eth-mainnet, etc.) or `all` for all networks.'
2222
jobs:
2323
build-and-test-local-subgraph:
2424
uses: ./.github/workflows/call.test-local-subgraph.yml

0 commit comments

Comments
 (0)