Skip to content

Commit 5817732

Browse files
authored
repo sync
2 parents 353acab + 40f6905 commit 5817732

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/repo-sync.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ on:
2323
jobs:
2424
close-invalid-repo-sync:
2525
name: Close invalid Repo Sync PRs
26-
if: github.repository == 'github/docs'
2726
runs-on: ubuntu-latest
2827
steps:
2928
- name: Find pull request
29+
if: ${{ github.repository == 'github/docs' }}
3030
uses: juliangruber/find-pull-request-action@2fc55e82a6d5d36fe1e7f1848f7e64fd02d99de9
3131
id: find-pull-request
3232
with:
@@ -35,7 +35,7 @@ jobs:
3535
base: main
3636

3737
- name: Close pull request if unwanted
38-
if: ${{ steps.find-pull-request.outputs.number }}
38+
if: ${{ github.repository == 'github/docs' && steps.find-pull-request.outputs.number }}
3939
uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9
4040
with:
4141
github-token: ${{ secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES }}

0 commit comments

Comments
 (0)