Skip to content

Commit

Permalink
Update site-policy-sync.yml
Browse files Browse the repository at this point in the history
adding filter to prevent (unmerged) closed PRs from pushing to the public repo
  • Loading branch information
pcihon authored May 24, 2021
1 parent 3aa3d43 commit 865b23f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/site-policy-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ on:
jobs:
# This workflow contains a single job called "build"
copy-file:
if: github.repository == 'github/docs-internal'
if: |
github.event.pull_request.merged == true &&
github.repository == 'github/docs-internal'
# The type of runner that the job will run on
runs-on: ubuntu-latest

Expand Down

0 comments on commit 865b23f

Please sign in to comment.