Skip to content

add content-type to curl main.yml #729

add content-type to curl main.yml

add content-type to curl main.yml #729

Workflow file for this run

name: Dispatcher
on:
push:
branches: ['**']
jobs:
dispatch:
runs-on: ubuntu-latest
steps:
- name: Check name of branch
run: |
echo $GITHUB_REF_NAME
- name: Dispatch to RRC
run: |
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Content-Type: application/json" \
-H "Authorization: token ${{ secrets.RRCOURSE }}" \
https://api.github.com/repos/nceas/repro-research-course/dispatches \
-d '{"event_type": "quarto", "client_payload": {"branch": $GITHUB_REF_NAME}}'