mirror of
https://github.com/qmk/qmk_userspace.git
synced 2025-05-06 07:34:18 -04:00
Converting target configuration to JSON file
- added json file with copy targets - added a bunch of steps to load/parse hte json file - altered my copy command to loop through array
This commit is contained in:
parent
b30815e11c
commit
271fdd4668
4 changed files with 21 additions and 6 deletions
|
@ -1,3 +0,0 @@
|
|||
keyboard:
|
||||
- 'barbellboards'
|
||||
- 'planck'
|
|
@ -12,7 +12,6 @@ jobs:
|
|||
with:
|
||||
qmk_repo: qmk/qmk_firmware
|
||||
qmk_ref: master
|
||||
config-file: ./.github/workflows/Configuration/keyboard_nontree.yaml
|
||||
|
||||
publish:
|
||||
name: 'QMK Userspace Publish'
|
||||
|
|
17
.github/workflows/qmk_userspace_build.yml
vendored
17
.github/workflows/qmk_userspace_build.yml
vendored
|
@ -61,10 +61,23 @@ jobs:
|
|||
run: |
|
||||
qmk userspace-doctor
|
||||
|
||||
- name: Install jq
|
||||
run: sudo apt-get install jq
|
||||
|
||||
- name: Import Non Tree Targets JSON file
|
||||
id: read_file
|
||||
run: cat $GITHUB_WORKSPACE/qmk-nontree.json
|
||||
|
||||
- name: Parse Non Tree Targets JSON file
|
||||
id: parse-json
|
||||
run: echo "${{ steps.read_file.outputs.stdout }}" | jq -r '.nontree_targets[]'
|
||||
|
||||
- name: Copy Non-Tree Keyboards to QMK Firmware
|
||||
id: loop-targets
|
||||
run: |
|
||||
for kb in '${keyboard[@]}'; do
|
||||
cp $GITHUB_WORKSPACE/keyboards/$kb $GITHUB_WORKSPACE/qmk_firmware/keyboards -R
|
||||
for target in ${{ steps.parse-json.outputs.stdout }};
|
||||
do
|
||||
cp $GITHUB_WORKSPACE/keyboards/$target $GITHUB_WORKSPACE/qmk_firmware/keyboards -R
|
||||
done
|
||||
|
||||
- name: Build
|
||||
|
|
6
qmk_nontree.json
Normal file
6
qmk_nontree.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"nontree_targets": [
|
||||
"barbellboards",
|
||||
"planck"
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue