Skip to content

Commit 7766d99

Browse files
authored
Only make vendor-json-repo PR if the repo is ours (#2053)
## Description This prevents jobs from failing on forks of the repo. Closes #1975. ## Meta Merge checklist: - [x] Pull Request title is [short, imperative summary](https://cbea.ms/git-commit/) of proposed changes - [x] The description documents the _what_ and _why_ - [ ] If this PR changes behavior or adds a feature, user documentation is updated - [ ] If this PR touches photon-serde, all messages have been regenerated and hashes have not changed unexpectedly - [ ] If this PR touches configuration, this is backwards compatible with settings back to v2024.3.1 - [ ] If this PR touches pipeline settings or anything related to data exchange, the frontend typing is updated - [ ] If this PR addresses a bug, a regression test for it is added
1 parent 81a5a48 commit 7766d99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,4 +604,4 @@ jobs:
604604
vendordep_file: ${{ github.workspace }}/photonlib-${{ github.ref_name }}.json
605605
pr_title: Update photonlib to ${{ github.ref_name }}
606606
pr_branch: photonlib-${{ github.ref_name }}
607-
if: startsWith(github.ref, 'refs/tags/v')
607+
if: github.repository == 'PhotonVision/photonvision' && startsWith(github.ref, 'refs/tags/v')

0 commit comments

Comments
 (0)