diff --git a/.github/workflows/aw-subgraph-ci-goldsky.yml b/.github/workflows/aw-subgraph-ci-goldsky.yml index 95e1dbb..bd7439c 100644 --- a/.github/workflows/aw-subgraph-ci-goldsky.yml +++ b/.github/workflows/aw-subgraph-ci-goldsky.yml @@ -2,6 +2,23 @@ name: Deploy WrapScheduler Subgraphs (Goldsky) on: workflow_dispatch: + inputs: + network: + description: 'Network to deploy (select "all" for all networks)' + required: true + type: choice + options: + - all + - avalanche-c + - arbitrum-one + - bsc-mainnet + - eth-mainnet + - xdai-mainnet + - optimism-mainnet + - polygon-mainnet + - optimism-sepolia + - base-mainnet + default: 'all' push: branches: - "release-v1/*" @@ -17,18 +34,7 @@ jobs: strategy: fail-fast: false matrix: - networks: - [ - "avalanche-c", - "arbitrum-one", - "bsc-mainnet", - "eth-mainnet", - "xdai-mainnet", - "optimism-mainnet", - "polygon-mainnet", - "optimism-sepolia", - "base-mainnet" - ] + networks: ${{ github.event.inputs.network == 'all' && fromJson('["avalanche-c", "arbitrum-one", "bsc-mainnet", "eth-mainnet", "xdai-mainnet", "optimism-mainnet", "polygon-mainnet", "optimism-sepolia", "base-mainnet"]') || fromJson(format('["{0}"]', github.event.inputs.network)) }} steps: - uses: actions/checkout@v4 - name: Install node @@ -71,4 +77,4 @@ jobs: fi - name: Goldsky Tag if: steps.check-sync.outputs.sync == 'true' - run: pnpm exec goldsky subgraph tag create ${{format('auto-wrap-v1-{0}/{1}', matrix.networks, steps.get-version.outputs.result) }} --tag prod + run: pnpm exec goldsky subgraph tag create ${{format('auto-wrap-v1-{0}/{1}', matrix.networks, steps.get-version.outputs.result) }} --tag prod \ No newline at end of file