1
0
mirror of synced 2026-01-05 12:07:35 -05:00

Work around Actions inability to use env. in a job-level if (#21657)

This commit is contained in:
James M. Greene
2021-09-22 14:35:36 -05:00
committed by GitHub
parent 2c724b6639
commit 2929e23008

View File

@@ -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')
}}