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 }}