mirror of
https://github.com/qmk/qmk_userspace.git
synced 2025-05-05 15:14:17 -04:00
adding a new way to parse json file per copilot
This commit is contained in:
parent
b1d6961d20
commit
6925059c2e
2 changed files with 4 additions and 2 deletions
4
.github/workflows/qmk_userspace_build.yml
vendored
4
.github/workflows/qmk_userspace_build.yml
vendored
|
@ -70,17 +70,19 @@ jobs:
|
|||
id: read_file
|
||||
run: |
|
||||
cat $GITHUB_WORKSPACE/qmk_nontree.json
|
||||
echo "::set-output name=json::$(cat qmk-nontree.json)"
|
||||
|
||||
- name: Parse Non Tree Targets JSON file
|
||||
id: parse-json
|
||||
run: |
|
||||
echo "${{ steps.read_file.outputs.stdout }}" | jq -r '.nontree_targets[]'
|
||||
echo "${{ steps.read-json.outputs.json }}" | jq -r '.nontree_targets[]'
|
||||
|
||||
- name: Copy Non-Tree Keyboards to QMK Firmware
|
||||
id: loop-targets
|
||||
run: |
|
||||
for target in ${{ steps.parse-json.outputs.stdout }};
|
||||
do
|
||||
echo "Copying keyboard: $target"
|
||||
cp $GITHUB_WORKSPACE/keyboards/$target $GITHUB_WORKSPACE/qmk_firmware/keyboards -R
|
||||
done
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"nontree_targets": [
|
||||
"nontree_targets": [
|
||||
"barbellboards",
|
||||
"planck"
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue