Skip to content

Commit

Permalink
fix: forcing the subgraph deploy workflow to fail on error
Browse files Browse the repository at this point in the history
  • Loading branch information
jaybuidl committed Jan 19, 2024
1 parent f9a41a8 commit e1a763c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/deploy-subgraph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,9 @@ jobs:
working-directory: subgraph

- name: Deploy the subgraph
run: yarn deploy:${{ inputs.subgraph }}:${{ vars.NETWORK }}
run: |
# working around a graph bug which doesn't exit 1 on error: https://github.com/graphprotocol/graph-client/issues/608
error=$(yarn deploy:${{ inputs.subgraph }}:${{ vars.NETWORK }})
echo "$error"
[[ $(echo "$error" | tail -n1 | grep -i error) ]] && exit 1
working-directory: subgraph
2 changes: 1 addition & 1 deletion subgraph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"@graphprotocol/graph-ts": "^0.32.0"
},
"devDependencies": {
"@graphprotocol/graph-cli": "0.64.0",
"@graphprotocol/graph-cli": "0.64.1",
"@kleros/kleros-v2-eslint-config": "workspace:^",
"@kleros/kleros-v2-prettier-config": "workspace:^",
"gluegun": "^5.1.2",
Expand Down
22 changes: 11 additions & 11 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4276,9 +4276,9 @@ __metadata:
languageName: node
linkType: hard

"@graphprotocol/graph-cli@npm:0.64.0":
version: 0.64.0
resolution: "@graphprotocol/graph-cli@npm:0.64.0"
"@graphprotocol/graph-cli@npm:0.64.1":
version: 0.64.1
resolution: "@graphprotocol/graph-cli@npm:0.64.1"
dependencies:
"@float-capital/float-subgraph-uncrashable": ^0.0.0-alpha.4
"@oclif/core": 2.8.6
Expand All @@ -4300,7 +4300,7 @@ __metadata:
ipfs-http-client: 55.0.0
jayson: 4.0.0
js-yaml: 3.14.1
prettier: 1.19.1
prettier: 3.0.3
request: 2.88.2
semver: 7.4.0
sync-request: 6.1.0
Expand All @@ -4310,7 +4310,7 @@ __metadata:
yaml: 1.10.2
bin:
graph: bin/run
checksum: f4abd1fac20e235e4d8e459ce3495fe4910064fc6d53e725dacb67d8814c95ce0eb38c8f8ec6b92db33b371ae5f59ebda86164bd437b48a82bee3729c030bcc0
checksum: cb390037538cf79576a13673b6848930fd01bd0c5ac521092f7425caafb37b051cf86e6bb3b92457b632c5933aa19b27eb93740fe3fd895b8050c9b575329600
languageName: node
linkType: hard

Expand Down Expand Up @@ -5531,7 +5531,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@kleros/kleros-v2-subgraph@workspace:subgraph"
dependencies:
"@graphprotocol/graph-cli": 0.64.0
"@graphprotocol/graph-cli": 0.64.1
"@graphprotocol/graph-ts": ^0.32.0
"@kleros/kleros-v2-eslint-config": "workspace:^"
"@kleros/kleros-v2-prettier-config": "workspace:^"
Expand Down Expand Up @@ -27245,12 +27245,12 @@ __metadata:
languageName: node
linkType: hard

"prettier@npm:1.19.1":
version: 1.19.1
resolution: "prettier@npm:1.19.1"
"prettier@npm:3.0.3":
version: 3.0.3
resolution: "prettier@npm:3.0.3"
bin:
prettier: ./bin-prettier.js
checksum: bc78219e0f8173a808f4c6c8e0a137dd8ebd4fbe013e63fe1a37a82b48612f17b8ae8e18a992adf802ee2cf7428f14f084e7c2846ca5759cf4013c6e54810e1f
prettier: bin/prettier.cjs
checksum: e10b9af02b281f6c617362ebd2571b1d7fc9fb8a3bd17e371754428cda992e5e8d8b7a046e8f7d3e2da1dcd21aa001e2e3c797402ebb6111b5cd19609dd228e0
languageName: node
linkType: hard

Expand Down

0 comments on commit e1a763c

Please sign in to comment.