From 7766d99ca679bd6576f4e79eb0c5c4c8c2bd99a5 Mon Sep 17 00:00:00 2001 From: Gold856 <117957790+Gold856@users.noreply.github.com> Date: Sun, 10 Aug 2025 19:26:50 -0400 Subject: [PATCH] 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 --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index acf58863a..4b9d49cda 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -604,4 +604,4 @@ jobs: vendordep_file: ${{ github.workspace }}/photonlib-${{ github.ref_name }}.json pr_title: Update photonlib to ${{ github.ref_name }} pr_branch: photonlib-${{ github.ref_name }} - if: startsWith(github.ref, 'refs/tags/v') + if: github.repository == 'PhotonVision/photonvision' && startsWith(github.ref, 'refs/tags/v')