From 6bc68ec65c6ebb0c4649bb2072a79a1acd054066 Mon Sep 17 00:00:00 2001 From: Mathias Scherer Date: Thu, 30 Nov 2023 16:26:53 +0100 Subject: [PATCH] ci(subgraph): fix condition for workflow dispatch (#506) --- .github/workflows/subgraph-deploy.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/subgraph-deploy.yaml b/.github/workflows/subgraph-deploy.yaml index dce5c640d..bc1206b7b 100644 --- a/.github/workflows/subgraph-deploy.yaml +++ b/.github/workflows/subgraph-deploy.yaml @@ -69,9 +69,10 @@ jobs: runs-on: ubuntu-latest needs: [prepare, changelog] if: > + always() && ( (github.event_name == 'workflow_dispatch') || ( needs.changelog.result == 'success' && - contains(toJson(github.event.pull_request.labels.*.name), 'subgraph:deploy')) + contains(toJson(github.event.pull_request.labels.*.name), 'subgraph:deploy'))) environment: ${{ needs.prepare.outputs.environment }} strategy: fail-fast: false