Skip to content

Commit

Permalink
[ci] Add dispatch actions task to ping tools on tag (wpilibsuite#6755)
Browse files Browse the repository at this point in the history
Allows automation of tagging of tools on allwpilib tag
Adapted from robotpy
  • Loading branch information
sciencewhiz authored Jun 22, 2024
1 parent 7f5970b commit f5df6f8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"}'

0 comments on commit f5df6f8

Please sign in to comment.