diff --git a/.github/workflows/staging-deploy-pr.yml b/.github/workflows/staging-deploy-pr.yml index 8831358026..65c7c7eec7 100644 --- a/.github/workflows/staging-deploy-pr.yml +++ b/.github/workflows/staging-deploy-pr.yml @@ -37,7 +37,7 @@ jobs: notify-of-failed-builds: if: >- ${{ - env.PR_NUMBER != '0' && + (github.event.workflow_run.pull_requests[0].number || '0') != '0' && github.event.workflow_run.conclusion == 'failure' && (github.repository == 'github/docs-internal' || github.repository == 'github/docs') }} @@ -57,7 +57,7 @@ jobs: check-pr-before-prepare: if: >- ${{ - env.PR_NUMBER != '0' && + (github.event.workflow_run.pull_requests[0].number || '0') != '0' && github.event.workflow_run.conclusion == 'success' && (github.repository == 'github/docs-internal' || github.repository == 'github/docs') }}