File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 4848 tool-cache : true
4949 large-packages : false
5050
51- - name : Update repo submodules
52- run : |
53- git submodule update --init
54-
5551 - name : Adjust config templates for a devcontainer
5652 run : |
5753 # Move into the config directory
6258 mv user-tools-repos.TEMPLATE.json user-tools-repos.json
6359
6460 # Adjust the file content for a valid radio frequency (TI targets)
65- sed -i -- 's|"RADIO_FREQUENCY": "CHANGE_ME_TO_A_VALID_VALUE_868_OR_915"|"RADIO_FREQUENCY": "${{ matrix.radio-freq }}"|g' user-prefs.json
61+ if [[ -n "${{ matrix.radio-freq }}" ]]; then
62+ sed -i -- 's|"RADIO_FREQUENCY": "CHANGE_ME_TO_A_VALID_VALUE_868_OR_915"|"RADIO_FREQUENCY": "${{ matrix.radio-freq }}"|g' user-prefs.json
63+ fi
6664
6765 # Adjust the file content for a devcontainer
6866 sed -i -- 's|"name": "user-tools-repos-container"|"name": "user-tools-repos"|g' user-tools-repos.json
Original file line number Diff line number Diff line change 6767 mv user-tools-repos.TEMPLATE.json user-tools-repos.json
6868
6969 # Adjust the file content for a valid radio frequency (TI targets)
70- sed -i -- 's|"RADIO_FREQUENCY": "CHANGE_ME_TO_A_VALID_VALUE_868_OR_915"|"RADIO_FREQUENCY": "${{ matrix.radio-freq }}"|g' user-prefs.json
70+ if [[ -n "${{ matrix.radio-freq }}" ]]; then
71+ sed -i -- 's|"RADIO_FREQUENCY": "CHANGE_ME_TO_A_VALID_VALUE_868_OR_915"|"RADIO_FREQUENCY": "${{ matrix.radio-freq }}"|g' user-prefs.json
72+ fi
7173
7274 # Adjust the file content for a devcontainer
7375 sed -i -- 's|"name": "user-tools-repos-container"|"name": "user-tools-repos"|g' user-tools-repos.json
You can’t perform that action at this time.
0 commit comments