Merge pull request #9 from individual-brain-charting/auth_fix #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update notifier | |
on: | |
push: | |
branches: [main] | |
paths: ['.github/workflows/**', 'src/ibc_api/**', 'examples/get_data.ipynb'] | |
jobs: | |
dispatch: | |
name: Notify docs | |
env: | |
PACKAGES_TO_UPGRADE: ${{ needs.run_publish.outputs.packages }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
repo: ['individual-brain-charting/docs'] | |
timeout-minutes: 5 | |
steps: | |
- name: Trigger docs build | |
run: | | |
curl -L \ | |
-X POST \ | |
-H "Accept: application/vnd.github+json" \ | |
-H "Authorization: token ${{ secrets.UPDATE_NOTIFIER_TOKEN }}"\ | |
-H "X-GitHub-Api-Version: 2022-11-28" \ | |
https://api.github.com/repos/${{ matrix.repo }}/dispatches \ | |
-d '{"event_type":"api_updated","client_payload":{"unit":false,"integration":true}}' |