Skip to content

Commit 865b23f

Browse files
authored
Update site-policy-sync.yml
adding filter to prevent (unmerged) closed PRs from pushing to the public repo
1 parent 3aa3d43 commit 865b23f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/site-policy-sync.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ on:
2222
jobs:
2323
# This workflow contains a single job called "build"
2424
copy-file:
25-
if: github.repository == 'github/docs-internal'
25+
if: |
26+
github.event.pull_request.merged == true &&
27+
github.repository == 'github/docs-internal'
2628
# The type of runner that the job will run on
2729
runs-on: ubuntu-latest
2830

0 commit comments

Comments
 (0)