Skip to content

Commit 01a5c9a

Browse files
authored
fix(action): put git-cliff binary inside ./bin (#30)
Signed-off-by: Ludovic Ortega <[email protected]>
1 parent 8720f56 commit 01a5c9a

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

install.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,12 @@ LOCATION="$(echo "${RELEASE_INFO}" \
3333
| jq --raw-output ".assets[].browser_download_url" \
3434
| grep "${TARGET}$")"
3535

36+
# Create bin directory
37+
mkdir -p ./bin
38+
3639
# Skip downloading release if downloaded already, e.g. when the action is used multiple times.
3740
if [[ ! -e "$TARGET" ]]; then
3841
curl --silent --show-error --fail --location --output "$TARGET" "$LOCATION"
3942
tar -xf "$TARGET"
40-
mv git-cliff-${TAG_NAME:1}/git-cliff .
43+
mv git-cliff-${TAG_NAME:1}/git-cliff ./bin/git-cliff
4144
fi

run.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ mkdir -p "$(dirname $OUTPUT)"
1717
args=$(echo "$@" | xargs)
1818

1919
# Execute git-cliff
20-
GIT_CLIFF_OUTPUT="$OUTPUT" ./git-cliff $args
20+
GIT_CLIFF_OUTPUT="$OUTPUT" ./bin/git-cliff $args
2121
exit_code=$?
2222

2323
# Retrieve context
2424
CONTEXT="$(mktemp)"
25-
GIT_CLIFF_OUTPUT="$CONTEXT" ./git-cliff $args --context
25+
GIT_CLIFF_OUTPUT="$CONTEXT" ./bin/git-cliff $args --context
2626

2727
# Output to console
2828
cat "$OUTPUT"

0 commit comments

Comments
 (0)