Skip to content

dispatch

dispatch #606

Workflow file for this run

name: dispatch
on:
workflow_run:
workflows: [release]
types:
- completed
jobs:
dispatch-on-release-success:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
strategy:
matrix:
repo: ['davidosomething/devcon']
steps:
- name: dispatch to devcon
# yamllint disable rule:line-length
run: |
curl \
-H "Accept: application/vnd.github.everest-preview+json" \
-H "Authorization: token ${{ secrets.DISPATCH_TOKEN }}" \
--request POST \
--data '{"event_type": "dotfiles_update", "client_payload": { "doit": true }}' \
https://api.github.com/repos/${{ matrix.repo }}/dispatches