add trigger.yml

This commit is contained in:
hathach 2020-01-09 21:31:10 +07:00
parent dd96be492f
commit 03d14f4d83
1 changed files with 14 additions and 0 deletions

14
.github/workflows/trigger.yml vendored Normal file
View File

@ -0,0 +1,14 @@
name: Trigger Repos
on:
push:
branches: master
jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: mynewt-tinyusb-example
shell: bash
run: |
curl -X POST -H "Authorization: token ${{ secrets.GH_REPO_TOKEN }}" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" --data '{"event_type": "rebuild"}' https://api.github.com/repos/hathach/mynewt-tinyusb-example/dispatches