From f5df6f88c8e8ee93bcfd3f10a9e892f42a15a017 Mon Sep 17 00:00:00 2001 From: sciencewhiz Date: Fri, 21 Jun 2024 17:15:42 -0700 Subject: [PATCH] [ci] Add dispatch actions task to ping tools on tag (#6755) Allows automation of tagging of tools on allwpilib tag Adapted from robotpy --- .github/workflows/gradle.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 4c37e8bfd6d..22f88f13425 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -251,3 +251,18 @@ jobs: with: name: Maven path: ~/releases + + dispatch: + name: dispatch + needs: [combine] + runs-on: ubuntu-22.04 + steps: + - uses: peter-evans/repository-dispatch@v3 + if: | + github.repository_owner == 'wpilibsuite' && + startsWith(github.ref, 'refs/tags/v') + with: + token: ${{ secrets.TOOL_REPO_ACCESS_TOKEN }} + repository: wpilibsuite/smartdashboard + event-type: tag + client-payload: '{"package_name": "allwpilib", "package_version": "${{ github.ref_name }}"}'