@@ -538,7 +538,7 @@ jobs:
538
538
name : image-${{ matrix.image_suffix }}
539
539
path : photonvision*.xz
540
540
release :
541
- needs : [build-package, build-image, combine]
541
+ needs : [build-photonlib-vendorjson, build- package, build-image, combine]
542
542
runs-on : ubuntu-22.04
543
543
steps :
544
544
# Download all fat JARs
@@ -596,18 +596,12 @@ jobs:
596
596
if : startsWith(github.ref, 'refs/tags/v')
597
597
env :
598
598
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
599
-
600
- dispatch :
601
- name : dispatch
602
- needs : [build-photonlib-vendorjson, release]
603
- runs-on : ubuntu-22.04
604
- steps :
605
- - uses : peter-evans/repository-dispatch@v3
606
- if : |
607
- github.repository == 'PhotonVision/photonvision' &&
608
- startsWith(github.ref, 'refs/tags/v')
599
+ - name : Create Vendor JSON Repo PR
600
+ uses : wpilibsuite/vendor-json-repo/.github/actions/add_vendordep@main
609
601
with :
602
+ repo : PhotonVision/vendor-json-repo
610
603
token : ${{ secrets.VENDOR_JSON_REPO_PUSH_TOKEN }}
611
- repository : PhotonVision/vendor-json-repo
612
- event-type : tag
613
- client-payload : ' {"run_id": "${{ github.run_id }}", "package_version": "${{ github.ref_name }}"}'
604
+ vendordep_file : ${{ github.workspace }}/photonlib-${{ github.ref_name }}.json
605
+ pr_title : Update photonlib to ${{ github.ref_name }}
606
+ pr_branch : photonlib-${{ github.ref_name }}
607
+ if : startsWith(github.ref, 'refs/tags/v')
0 commit comments