Skip to content

small change to test branch var gha #683

small change to test branch var gha

small change to test branch var gha #683

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 \