From 365afd2e94a8fe6657b34dffdadee97a46e48f63 Mon Sep 17 00:00:00 2001 From: Goutham Pratapa Date: Fri, 27 Jan 2023 15:34:58 +0530 Subject: [PATCH] ci: fix github-actions trigger sequence (#20138) --- .../workflows/on-demand-build-docker-image-deploy-preview.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/on-demand-build-docker-image-deploy-preview.yml b/.github/workflows/on-demand-build-docker-image-deploy-preview.yml index 926fdea7e8..464c454c42 100644 --- a/.github/workflows/on-demand-build-docker-image-deploy-preview.yml +++ b/.github/workflows/on-demand-build-docker-image-deploy-preview.yml @@ -140,10 +140,12 @@ jobs: /bin/bash ./scripts/deploy_preview.sh notify-url: + needs: [build-deploy-preview] runs-on: ubuntu-latest + if: success() steps: # This step creates a comment on the PR with a link to this workflow run. - - name: Add a comment on the PR with link to workflow run + - name: Add a comment on the PR with link to Deploy-Preview uses: peter-evans/create-or-update-comment@v2 with: issue-number: ${{ github.event.client_payload.pull_request.number }}