From 41bd23742eef111f584905f3fabe8ba530c02730 Mon Sep 17 00:00:00 2001 From: "James M. Greene" Date: Tue, 31 Aug 2021 12:17:55 -0500 Subject: [PATCH] Fix multiline 'if' syntax to not return false positives (#21220) --- .github/workflows/site-policy-reminder.yml | 2 +- .github/workflows/site-policy-sync.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/site-policy-reminder.yml b/.github/workflows/site-policy-reminder.yml index cd439f9641e1..ab00290807c6 100644 --- a/.github/workflows/site-policy-reminder.yml +++ b/.github/workflows/site-policy-reminder.yml @@ -10,7 +10,7 @@ on: jobs: run: - if: | + if: >- github.event.label.name == 'Site Policy' && github.repository == 'github/docs-internal' runs-on: ubuntu-latest diff --git a/.github/workflows/site-policy-sync.yml b/.github/workflows/site-policy-sync.yml index 15eaa5c14fe4..f2d93c7b6762 100644 --- a/.github/workflows/site-policy-sync.yml +++ b/.github/workflows/site-policy-sync.yml @@ -22,7 +22,7 @@ on: jobs: # This workflow contains a single job called "build" copy-file: - if: | + if: >- github.event.pull_request.merged == true && github.repository == 'github/docs-internal' # The type of runner that the job will run on