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