Skip to content

Commit

Permalink
Only build when repo is main one
Browse files Browse the repository at this point in the history
  • Loading branch information
jbelkins committed Dec 9, 2023
1 parent 30a9660 commit 7244a05
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/codegen-build-test-on-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ jobs:
runs-on: macos-13-xl
env:
DEVELOPER_DIR: /Applications/Xcode_15.0.app/Contents/Developer
if: github.event.issue.pull_request && contains(github.event.comment.body, '/test')
if: |
github.event.pull_request.head.repo.full_name == github.repository &&
github.event.issue.pull_request &&
contains(github.event.comment.body, '/test')
steps:
- name: Get PR branch
uses: xt0rted/pull-request-comment-branch@v2
Expand Down

0 comments on commit 7244a05

Please sign in to comment.