@@ -121,7 +121,7 @@ runs:
121121 else
122122 if [[ -z "$(ls ${armbian_filepath}/${armbian_filename} 2>/dev/null)" ]]; then
123123 echo -e "Copy files: [ ${armbian_file} ]"
124- cp -vf ${GITHUB_WORKSPACE }/${armbian_file} ${armbian_filepath} 2>/dev/null
124+ cp -vf ${{ github.workspace } }/${armbian_file} ${armbian_filepath} 2>/dev/null
125125 else
126126 echo -e "The [ ${armbian_filepath}/${armbian_filename} ] file already exists, skipping."
127127 fi
@@ -198,10 +198,10 @@ runs:
198198 kernel_outpath="compile-kernel/output"
199199 [[ -d "${config_filepath}" ]] || mkdir -p ${config_filepath}
200200 if [[ -n "${{ inputs.kernel_config }}" && "${{ inputs.kernel_config }}" != "false" ]]; then
201- if [[ "$(ls ${GITHUB_WORKSPACE }/${{ inputs.kernel_config }}/config-* -l 2>/dev/null | grep "^-" | wc -l)" -ne "0" ]]; then
201+ if [[ "$(ls ${{ github.workspace } }/${{ inputs.kernel_config }}/config-* -l 2>/dev/null | grep "^-" | wc -l)" -ne "0" ]]; then
202202 echo -e "Use a custom kernel compilation template..."
203203 rm -f ${config_filepath}/* 2>/dev/null && sync
204- cp -vf ${GITHUB_WORKSPACE }/${{ inputs.kernel_config }}/config-* ${config_filepath}/ 2>/dev/null && sync
204+ cp -vf ${{ github.workspace } }/${{ inputs.kernel_config }}/config-* ${config_filepath}/ 2>/dev/null && sync
205205 echo -e "List of Kernel Custom Compilation Configuration Templates: \n$(ls -lh ${config_filepath} 2>/dev/null)"
206206 else
207207 echo -e "The custom kernel compilation template path is invalid, continue to use the default template."
@@ -214,10 +214,10 @@ runs:
214214 custom_kernel_patch="compile-kernel/tools/patch"
215215 [[ -d "${custom_kernel_patch}" ]] || mkdir -p ${custom_kernel_patch}
216216 if [[ -n "${{ inputs.kernel_patch }}" && "${{ inputs.kernel_patch }}" != "false" ]]; then
217- if [[ -d "${GITHUB_WORKSPACE }/${{ inputs.kernel_patch }}" ]]; then
217+ if [[ -d "${{ github.workspace } }/${{ inputs.kernel_patch }}" ]]; then
218218 echo -e "Use custom kernel patches..."
219219 rm -rf ${custom_kernel_patch}/* 2>/dev/null && sync
220- cp -vrf ${GITHUB_WORKSPACE }/${{ inputs.kernel_patch }}/* -t ${custom_kernel_patch} && sync
220+ cp -vrf ${{ github.workspace } }/${{ inputs.kernel_patch }}/* -t ${custom_kernel_patch} && sync
221221 echo -e "Directory of custom kernel patches: \n$(ls -lh ${custom_kernel_patch} 2>/dev/null)"
222222 else
223223 echo -e "Invalid custom kernel patch directory, skipping."
0 commit comments