added a check to ensure environment variable is set before

trying to process it
This commit is contained in:
Victor 2024-04-10 23:31:42 -05:00
parent 24251d5fbb
commit 1e368b9767
Failed to generate hash of commit

View file

@ -62,7 +62,6 @@ jobs:
qmk userspace-doctor
- name: Read Non-Tree Targets from JSON file
if: steps.check_json_file.outputs.files_exists == 'true'
run: |
{
echo 'COPY_TARGETS<<EOF'
@ -71,6 +70,7 @@ jobs:
} >> "$GITHUB_ENV"
- name: Copy Non-Tree Keyboard Defintions from Userspace to QMK Firmware
if: ${{ env.COPY_TARGETS == '' }}
run: |
for target in ${{ join(fromJson(env.COPY_TARGETS).nontree_targets, ' ') }};
do