Skip to content

Commit 81a5a48

Browse files
authored
Use new vendor JSON repo action (#2049)
1 parent 29e1836 commit 81a5a48

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ jobs:
538538
name: image-${{ matrix.image_suffix }}
539539
path: photonvision*.xz
540540
release:
541-
needs: [build-package, build-image, combine]
541+
needs: [build-photonlib-vendorjson, build-package, build-image, combine]
542542
runs-on: ubuntu-22.04
543543
steps:
544544
# Download all fat JARs
@@ -596,18 +596,12 @@ jobs:
596596
if: startsWith(github.ref, 'refs/tags/v')
597597
env:
598598
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
609601
with:
602+
repo: PhotonVision/vendor-json-repo
610603
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

Comments
 (0)