forked from stupidloud/nanopi-openwrt
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (36 loc) · 1.13 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
name: Repo Dispatcher
on:
workflow_dispatch:
inputs:
debug:
type: choice
description: 'debug?'
options:
- true
- false
default: 'false'
required: true
package_clean:
type: choice
description: 'check to make clean package'
options:
- true
- false
default: 'true'
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 }}" }}'