We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 353acab + 40f6905 commit 5817732Copy full SHA for 5817732
1 file changed
.github/workflows/repo-sync.yml
@@ -23,10 +23,10 @@ on:
23
jobs:
24
close-invalid-repo-sync:
25
name: Close invalid Repo Sync PRs
26
- if: github.repository == 'github/docs'
27
runs-on: ubuntu-latest
28
steps:
29
- name: Find pull request
+ if: ${{ github.repository == 'github/docs' }}
30
uses: juliangruber/find-pull-request-action@2fc55e82a6d5d36fe1e7f1848f7e64fd02d99de9
31
id: find-pull-request
32
with:
@@ -35,7 +35,7 @@ jobs:
35
base: main
36
37
- name: Close pull request if unwanted
38
- if: ${{ steps.find-pull-request.outputs.number }}
+ if: ${{ github.repository == 'github/docs' && steps.find-pull-request.outputs.number }}
39
uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9
40
41
github-token: ${{ secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES }}
0 commit comments