Skip to content

Merge pull request #301 from hdolinh/dev #684

Merge pull request #301 from hdolinh/dev

Merge pull request #301 from hdolinh/dev #684

Workflow file for this run

name: Dispatcher
on:
push:
branches: ['**']
pull_request:
types: [closed]
jobs:
dispatch:
runs-on: ubuntu-latest
steps:
- name: Set branch name to variable
run: |
branch=$(echo "${{ steps.pr_details.outputs.data.base.ref }}")
echo "BRANCH=$branch" >> $GITHUB_ENV
- name: Dispatch to RRC
run: |
curl -X POST -H "Authorization: token ${{ secrets.RRCOURSE }}" \
-H "Content-Type: application/json" \
-H "Accept: application/vnd.github.everest-preview+json" \
--data '{"event_type": "quarto", "ref": "develop", \"branch\": \"$BRANCH\"}'
https://api.github.com/repos/nceas/repro-research-course/dispatches \