Skip to content
name: Dispatch vpm-repos build
on:
workflow_dispatch:
release:
types: [published, created, edited, unpublished, deleted, released]
permissions:
id-token: write
jobs:
dispatch-workflow:
runs-on: ubuntu-latest
steps:
- name: Request repository dispatch
run: |
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.ACTIONS_KEY }}"\
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/Centurion-Creative-Connect/vpm-repos/actions/workflows/build-listing.yml/dispatches \
-d '{"ref":"main"}' \
-w '\n%{response_code}'\
> response
- name: Log response
run: |
cat response
- name: Check response
run: |
[[ $(tail -n 1 response) == "204" ]]