chore(project): add action files

This commit is contained in:
orhun
2021-06-18 00:27:35 +03:00
parent c83b82a967
commit 29b917f0c8
4 changed files with 90 additions and 0 deletions

21
entrypoint.sh Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/bash -l
set -uxo pipefail
CHANGELOG_OUT=${CHANGELOG_OUT:="git-cliff/CHANGELOG.md"}
# Create the output directory
mkdir -p "$(dirname $CHANGELOG_OUT)"
# Execute git-cliff
git-cliff "$@" > "$CHANGELOG_OUT"
exit_code=$?
changelog=$(cat "$CHANGELOG_OUT")
# Output to console
echo "$changelog"
# Set output
echo "::set-output name=changelog::$changelog"
# Pass exit code to the next step
echo ::set-output name=exit_code::$exit_code