From bd34a559548bfaf3c20ac9fdb8457d64479b8397 Mon Sep 17 00:00:00 2001 From: orhun Date: Fri, 18 Jun 2021 18:48:34 +0300 Subject: [PATCH] chore(action): use the output file as action output --- entrypoint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 878d870..90ccbc2 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -9,13 +9,13 @@ mkdir -p "$(dirname $CHANGELOG_OUT)" # Execute git-cliff git-cliff "$@" > "$CHANGELOG_OUT" exit_code=$? -changelog=$(cat "$CHANGELOG_OUT") # Output to console -echo "$changelog" +cat "$CHANGELOG_OUT" +echo # Set output -echo "::set-output name=changelog::$changelog" +echo "::set-output name=changelog::$CHANGELOG_OUT" # Pass exit code to the next step echo "::set-output name=exit_code::$exit_code"