File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -33,9 +33,12 @@ LOCATION="$(echo "${RELEASE_INFO}" \
33
33
| jq --raw-output " .assets[].browser_download_url" \
34
34
| grep " ${TARGET} $" ) "
35
35
36
+ # Create bin directory
37
+ mkdir -p ./bin
38
+
36
39
# Skip downloading release if downloaded already, e.g. when the action is used multiple times.
37
40
if [[ ! -e " $TARGET " ]]; then
38
41
curl --silent --show-error --fail --location --output " $TARGET " " $LOCATION "
39
42
tar -xf " $TARGET "
40
- mv git-cliff-${TAG_NAME: 1} /git-cliff .
43
+ mv git-cliff-${TAG_NAME: 1} /git-cliff ./bin/git-cliff
41
44
fi
Original file line number Diff line number Diff line change @@ -17,12 +17,12 @@ mkdir -p "$(dirname $OUTPUT)"
17
17
args=$( echo " $@ " | xargs)
18
18
19
19
# Execute git-cliff
20
- GIT_CLIFF_OUTPUT=" $OUTPUT " ./git-cliff $args
20
+ GIT_CLIFF_OUTPUT=" $OUTPUT " ./bin/ git-cliff $args
21
21
exit_code=$?
22
22
23
23
# Retrieve context
24
24
CONTEXT=" $( mktemp) "
25
- GIT_CLIFF_OUTPUT=" $CONTEXT " ./git-cliff $args --context
25
+ GIT_CLIFF_OUTPUT=" $CONTEXT " ./bin/ git-cliff $args --context
26
26
27
27
# Output to console
28
28
cat " $OUTPUT "
You can’t perform that action at this time.
0 commit comments