Repo Dispatcher #823
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: Repo Dispatcher | |
on: | |
workflow_dispatch: | |
inputs: | |
package_clean: | |
type: choice | |
description: 'check to make clean package' | |
options: | |
- true | |
- false | |
default: 'true' | |
required: true | |
debug: | |
type: choice | |
description: 'debug?' | |
options: | |
- true | |
- false | |
default: 'false' | |
required: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
device: [r1p, r1p-lts, r1s, r1s-h3, r2c, r2s, r4s, r4se, r5s, r5c, r6s, r6c, x86] | |
steps: | |
- name: Trigger Compile | |
run: | | |
branch='master'; | |
curl \ | |
-X POST https://api.github.com/repos/${{ github.repository }}/dispatches \ | |
-H "Accept: application/vnd.github.everest-preview+json" \ | |
-H "Authorization: token ${{ secrets.SEC_TOKEN }}" \ | |
-d '{"event_type": "${{ matrix.device }}", "client_payload": {"branch": "'$branch'", "device": "${{ matrix.device }}", "package_clean": "${{ github.event.inputs.package_clean }}", "debug": "${{ github.event.inputs.debug }}" }}' |