Skip to content

Dispatch To LauraVRCUtils #2

Dispatch To LauraVRCUtils

Dispatch To LauraVRCUtils #2

name: Dispatch To LauraVRCUtils
on:
workflow_dispatch:
workflow_run:
workflows: [Build Release]
types:
- completed
release:
types: [published, created, edited, unpublished, deleted, released]
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
id-token: write
jobs:
dispatch:
name: Dispatch
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Dispatch to workflows
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.LauraVRCUtils_PAT }}
repository: LauraRozier/LauraVRCUtils
event-type: update-listing
client-payload: '{"ref":"${{ github.ref }}","sha":"${{ github.sha }}","inputs":{}}'
# run: |
# curl -L \
# -X POST \
# -H "Accept: application/vnd.github+json" \
# -H "Authorization: Bearer ${{ secrets.LauraVRCUtils_PAT }}" \
# -H "X-GitHub-Api-Version: 2022-11-28" \
# https://api.github.com/repos/LauraRozier/LauraVRCUtils/actions/workflows/build-listing.yml/dispatches \
# -d '{"ref":"main","inputs":{}}'