Work around Actions inability to use env. in a job-level if (#21657)
This commit is contained in:
4
.github/workflows/staging-deploy-pr.yml
vendored
4
.github/workflows/staging-deploy-pr.yml
vendored
@@ -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')
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user