forked from stupidloud/nanopi-openwrt
-
Notifications
You must be signed in to change notification settings - Fork 0
25 lines (24 loc) · 854 Bytes
/
dispatch.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
name: Repo Dispatcher
on:
workflow_dispatch:
inputs:
package_clean:
description: 'check to make clean package'
default: 'false'
required: true
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
device: [r1p, r1s, r1s-h3, r2c, r2s, r4s, 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 }}" }}'