mirror of
https://github.com/orhun/git-cliff-action.git
synced 2026-03-22 07:25:43 +08:00
chore(action): use the output file as action output
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user