Skip to content

Commit

Permalink
subgraph name as input
Browse files Browse the repository at this point in the history
  • Loading branch information
thedavidmeister committed Oct 11, 2024
1 parent 68bb135 commit 5e8757f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/deploy-subgraph.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Deploy subgraph
on:
[workflow_dispatch]
workflow_dispatch:
inputs:
subgraph-name:
description: 'Subgraph to deploy (e.g. ob4-mainnet/0.1)'
required: true
type: string

jobs:
deploy:
Expand All @@ -20,5 +25,5 @@ jobs:
working-directory: subgraph
- run: nix develop -c graph build
working-directory: subgraph
- run: nix develop -c goldsky subgraph deploy
- run: nix develop -c goldsky subgraph deploy ${{ inputs.subgraph-name }}
working-directory: subgraph

0 comments on commit 5e8757f

Please sign in to comment.