forked from manna-harbour/miryoku_zmk
-
Notifications
You must be signed in to change notification settings - Fork 0
94 lines (93 loc) · 3.26 KB
/
test-inputs.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# Copyright 2022 Manna Harbour
# https://github.com/manna-harbour/miryoku
name: 'Test Inputs'
on:
workflow_dispatch:
inputs:
board:
description: 'board'
required: true
shield:
description: 'shield'
required: false
default: 'default'
alphas:
description: 'alphas'
required: false
default: 'default'
nav:
description: 'nav'
required: false
default: 'default'
clipboard:
description: 'clipboard'
required: false
default: 'default'
layers:
description: 'layers'
required: false
default: 'default'
mapping:
description: 'mapping'
required: false
default: 'default'
custom_config:
description: 'custom_config'
required: false
default: 'default'
kconfig:
description: 'kconfig'
required: false
default: 'default'
branches:
description: 'branches'
required: false
default: 'default'
jobs:
process-inputs:
runs-on: ubuntu-latest
outputs:
board: ${{ steps.process-inputs.outputs.board }}
shield: ${{ steps.process-inputs.outputs.shield }}
alphas: ${{ steps.process-inputs.outputs.alphas }}
nav: ${{ steps.process-inputs.outputs.nav }}
clipboard: ${{ steps.process-inputs.outputs.clipboard }}
layers: ${{ steps.process-inputs.outputs.layers }}
mapping: ${{ steps.process-inputs.outputs.mapping }}
custom_config: ${{ steps.process-inputs.outputs.custom_config }}
kconfig: ${{ steps.process-inputs.outputs.kconfig }}
branches: ${{ steps.process-inputs.outputs.branches }}
steps:
- name: Process inputs
id: process-inputs
run: |
set-output()
{
json=`echo "$2" | jq -cnR 'inputs | split(",";"")'`
echo "$1=$json" >> $GITHUB_OUTPUT
}
set-output "board" "${{ github.event.inputs.board }}"
set-output "shield" "${{ github.event.inputs.shield }}"
set-output "alphas" "${{ github.event.inputs.alphas }}"
set-output "nav" "${{ github.event.inputs.nav }}"
set-output "clipboard" "${{ github.event.inputs.clipboard }}"
set-output "layers" "${{ github.event.inputs.layers }}"
set-output "mapping" "${{ github.event.inputs.mapping }}"
set-output "custom_config" "${{ github.event.inputs.custom_config }}"
set-output "kconfig" "${{ github.event.inputs.kconfig }}"
set-output "branches" "${{ github.event.inputs.branches }}"
build:
uses: ./.github/workflows/main.yml
secrets: inherit
needs: process-inputs
with:
board: ${{ needs.process-inputs.outputs.board }}
shield: ${{ needs.process-inputs.outputs.shield }}
alphas: ${{ needs.process-inputs.outputs.alphas }}
nav: ${{ needs.process-inputs.outputs.nav }}
clipboard: ${{ needs.process-inputs.outputs.clipboard }}
layers: ${{ needs.process-inputs.outputs.layers }}
mapping: ${{ needs.process-inputs.outputs.mapping }}
custom_config: ${{ needs.process-inputs.outputs.custom_config }}
kconfig: ${{ needs.process-inputs.outputs.kconfig }}
branches: ${{ needs.process-inputs.outputs.branches }}