From 01d9bf1f3d1f16ad849e4fb8ada0061f44836698 Mon Sep 17 00:00:00 2001 From: Mathias Scherer Date: Mon, 4 Sep 2023 10:27:33 +0200 Subject: [PATCH] cicd(subgraph): deploy subgraph even when it wasn't a pull_request triggering it --- .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 bcbe16836..4bb386b03 100644 --- a/.github/workflows/subgraph-deploy.yaml +++ b/.github/workflows/subgraph-deploy.yaml @@ -65,8 +65,9 @@ jobs: runs-on: ubuntu-latest needs: [prepare, changelog] if: > + (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