mirror of
https://github.com/orhun/git-cliff-action.git
synced 2026-03-22 23:45:43 +08:00
21 lines
365 B
Bash
Executable File
21 lines
365 B
Bash
Executable File
#!/bin/bash -l
|
|
set -uxo pipefail
|
|
|
|
OUTPUT=${OUTPUT:="git-cliff/CHANGELOG.md"}
|
|
|
|
# Create the output directory
|
|
mkdir -p "$(dirname $OUTPUT)"
|
|
|
|
# Execute git-cliff
|
|
git-cliff $@
|
|
exit_code=$?
|
|
|
|
# Output to console
|
|
cat "$OUTPUT"
|
|
|
|
# Set output file
|
|
echo "::set-output name=changelog::$OUTPUT"
|
|
|
|
# Pass exit code to the next step
|
|
echo "::set-output name=exit_code::$exit_code"
|