ci: fix github-actions trigger sequence (#20138)

This commit is contained in:
Goutham Pratapa 2023-01-27 15:34:58 +05:30 committed by GitHub
parent 17711b5d81
commit 365afd2e94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,10 +140,12 @@ jobs:
/bin/bash ./scripts/deploy_preview.sh /bin/bash ./scripts/deploy_preview.sh
notify-url: notify-url:
needs: [build-deploy-preview]
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: success()
steps: steps:
# This step creates a comment on the PR with a link to this workflow run. # 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 uses: peter-evans/create-or-update-comment@v2
with: with:
issue-number: ${{ github.event.client_payload.pull_request.number }} issue-number: ${{ github.event.client_payload.pull_request.number }}