mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-12 02:56:56 +08:00
Group output from zip.
This commit is contained in:
6
.github/workflows/NightlyRelease.yml
vendored
6
.github/workflows/NightlyRelease.yml
vendored
@@ -343,12 +343,14 @@ jobs:
|
|||||||
if [[ "${asset}" == !*.zip ]]; then
|
if [[ "${asset}" == !*.zip ]]; then
|
||||||
printf "%s\n" "${ANSI_LIGHT_GREEN}[ZIP]${ANSI_NOCOLOR}"
|
printf "%s\n" "${ANSI_LIGHT_GREEN}[ZIP]${ANSI_NOCOLOR}"
|
||||||
asset="${asset##*!}"
|
asset="${asset##*!}"
|
||||||
printf " %s\n" "Compressing artifact '${artifact}' to '${asset}' ..."
|
printf "::group:: %s\n" "Compressing artifact '${artifact}' to '${asset}' ..."
|
||||||
(
|
(
|
||||||
cd "${artifact}" && \
|
cd "${artifact}" && \
|
||||||
zip -r "../${asset}" *
|
zip -r "../${asset}" *
|
||||||
)
|
)
|
||||||
if [[ $? -eq 0 ]]; then
|
retCode=$?
|
||||||
|
printf "::endgroup::\n"
|
||||||
|
if [[ $retCode -eq 0 ]]; then
|
||||||
printf " %s\n" "Compression ${ANSI_LIGHT_GREEN}[OK]${ANSI_NOCOLOR}"
|
printf " %s\n" "Compression ${ANSI_LIGHT_GREEN}[OK]${ANSI_NOCOLOR}"
|
||||||
uploadFile="${asset}"
|
uploadFile="${asset}"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user