Update ON datasets to use useragent in request #195
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
on: push | |
env: | |
TOKEN: ${{ secrets.GH_PAT }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: | | |
curl -i -u jeanpaulrsoucy:$TOKEN \ | |
-X POST \ | |
-H "Accept: application/vnd.github.v3+json" \ | |
https://api.github.com/repos/ccodwg/Covid19CanadaBot/actions/workflows/docker-ccodwg-archive.yml/dispatches \ | |
-d '{"ref":"main"}' |