diff --git a/.github/workflows/NightlyRelease.yml b/.github/workflows/NightlyRelease.yml index a9a1c60..de2ae75 100644 --- a/.github/workflows/NightlyRelease.yml +++ b/.github/workflows/NightlyRelease.yml @@ -285,7 +285,7 @@ jobs: if [[ -n "${assetFilenames[$asset]}" ]]; then printf "%s\n" "${ANSI_LIGHT_RED}[ERROR]${ANSI_NOCOLOR}" printf "%s\n" "::error title=DuplicateAsset::Asset '${asset}' from artifact '${artifact}' was already uploaded to release '${{ inputs.nightly_name }}'." - ERRORS=1 + ERRORS=$((ERRORS + 1)) continue else printf "%s\n" "${ANSI_LIGHT_GREEN}[OK]${ANSI_NOCOLOR}" @@ -305,7 +305,7 @@ jobs: printf "%s\n" "${ANSI_LIGHT_RED}[ERROR]${ANSI_NOCOLOR}" printf " %s\n" "${ANSI_LIGHT_RED}Couldn't download artifact '${artifact}'.${ANSI_NOCOLOR}" printf "%s\n" "::error title=ArtifactNotFound::Couldn't download artifact '${artifact}'." - ERRORS=1 + ERRORS=$((ERRORS + 1)) continue fi downloadedArtifacts[$artifact]=1 @@ -357,7 +357,7 @@ jobs: printf " %s\n" "Compression ${ANSI_LIGHT_RED}[ERROR]${ANSI_NOCOLOR}" printf " %s\n" "${ANSI_LIGHT_RED}Couldn't compress '${artifact}' to zip file '${asset}'.${ANSI_NOCOLOR}" printf "%s\n" "::error title=CompressionError::Couldn't compress '${artifact}' to zip file '${asset}'." - ERRORS=1 + ERRORS=$((ERRORS + 1)) continue fi elif [[ "${asset}" == !*.tgz || "${asset}" == !*.tar.gz || "${asset}" == \$*.tgz || "${asset}" == \$*.tar.gz ]]; then @@ -386,7 +386,7 @@ jobs: printf " %s\n" "Compression ${ANSI_LIGHT_RED}[ERROR]${ANSI_NOCOLOR}" printf " %s\n" "${ANSI_LIGHT_RED}Couldn't compress '${artifact}' to tgz file '${asset}'.${ANSI_NOCOLOR}" printf "%s\n" "::error title=CompressionError::Couldn't compress '${artifact}' to tgz file '${asset}'." - ERRORS=1 + ERRORS=$((ERRORS + 1)) continue fi elif [[ "${asset}" == !*.tzst || "${asset}" == !*.tar.zst || "${asset}" == \$*.tzst || "${asset}" == \$*.tar.zst ]]; then @@ -415,7 +415,7 @@ jobs: printf " %s\n" "Compression ${ANSI_LIGHT_RED}[ERROR]${ANSI_NOCOLOR}" printf " %s\n" "${ANSI_LIGHT_RED}Couldn't compress '${artifact}' to zst file '${asset}'.${ANSI_NOCOLOR}" printf "%s\n" "::error title=CompressionError::Couldn't compress '${artifact}' to zst file '${asset}'." - ERRORS=1 + ERRORS=$((ERRORS + 1)) continue fi elif [[ -e "${artifact}/${asset}" ]]; then @@ -425,7 +425,7 @@ jobs: printf "%s\n" "${ANSI_LIGHT_RED}[ERROR]${ANSI_NOCOLOR}" printf " %s\n" "${ANSI_LIGHT_RED}Couldn't find asset '${asset}' in artifact '${artifact}'.${ANSI_NOCOLOR}" printf "%s\n" "::error title=FileNotFound::Couldn't find asset '${asset}' in artifact '${artifact}'." - ERRORS=1 + ERRORS=$((ERRORS + 1)) continue fi @@ -465,7 +465,7 @@ jobs: printf "%s\n" "${ANSI_LIGHT_RED}[ERROR]${ANSI_NOCOLOR}" printf " %s\n" "${ANSI_LIGHT_RED}Couldn't upload asset '${asset}' from '${uploadFile}' to release '${{ inputs.nightly_name }}'.${ANSI_NOCOLOR}" printf "%s\n" "::error title=UploadError::Couldn't upload asset '${asset}' from '${uploadFile}' to release '${{ inputs.nightly_name }}'." - ERRORS=1 + ERRORS=$((ERRORS + 1)) continue fi done <<<'${{ inputs.assets }}' @@ -488,7 +488,7 @@ jobs: printf "%s\n" "${ANSI_LIGHT_RED}[ERROR]${ANSI_NOCOLOR}" printf " %s\n" "${ANSI_LIGHT_RED}Couldn't upload asset '${{ inputs.inventory-json }}' to release '${{ inputs.nightly_name }}'.${ANSI_NOCOLOR}" printf "%s\n" "::error title=UploadError::Couldn't upload asset '${{ inputs.inventory-json }}' to release '${{ inputs.nightly_name }}'." - ERRORS=1 + ERRORS=$((ERRORS + 1)) continue fi fi