Skip to content

Commit f4fec94

Browse files
committed
Add Job Summary
1 parent d942436 commit f4fec94

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/main.sh

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ if [ -n "${INPUT_ENV_FILE}" ];then
6464
set -a
6565
# shellcheck disable=SC1090
6666
source "${INPUT_ENV_FILE}"
67-
fi
6867
echo "::endgroup::"
68+
fi
6969

7070
if [[ -n "${INPUT_REGISTRY_USER}" && -n "${INPUT_REGISTRY_PASS}" ]];then
7171
echo -e "::group::Logging in to Registry: \u001b[36;1m${INPUT_REGISTRY_HOST:-Docker Hub}"
@@ -75,18 +75,20 @@ if [[ -n "${INPUT_REGISTRY_USER}" && -n "${INPUT_REGISTRY_PASS}" ]];then
7575
echo "::endgroup::"
7676
fi
7777

78-
echo -e "::group::Deploying Stack: \u001b[36;1m${INPUT_NAME}"
78+
#echo -e "::group::Deploying Stack: \u001b[36;1m${INPUT_NAME}"
79+
echo -e "Deploying Stack: \u001b[36;1m${INPUT_NAME}"
7980
EXTRA_ARGS=()
8081
if [[ -n "${INPUT_REGISTRY_AUTH}" ]];then
8182
echo -e "Adding extra arg: \u001b[36;1m--with-registry-auth"
8283
EXTRA_ARGS+=("--with-registry-auth")
8384
fi
8485
# shellcheck disable=SC2034
85-
RESULTS=$(docker stack deploy -c "${INPUT_FILE}" "${INPUT_NAME}" "${EXTRA_ARGS[@]}" | tee /dev/stdout)
86-
echo "::endgroup::"
86+
RESULTS=$(docker stack deploy -c "${INPUT_FILE}" "${INPUT_NAME}" "${EXTRA_ARGS[@]}")
87+
#echo "::endgroup::"
8788

8889
if [[ "${INPUT_SUMMARY}" == "true" ]];then
89-
echo "::group::Writing Job Summary"
90-
source /src/summary.sh | tee /dev/stdout >> "${GITHUB_STEP_SUMMARY}"
91-
echo "::endgroup::"
90+
echo "Writing Job Summary"
91+
# echo "::group::Writing Job Summary"
92+
source /src/summary.sh >> "${GITHUB_STEP_SUMMARY}"
93+
# echo "::endgroup::"
9294
fi

0 commit comments

Comments
 (0)