Skip to content

Commit a13024b

Browse files
committed
ci: enhance GitHub Actions with install path export and messaging
- Add support for appending the install directory to the GITHUB_PATH in GitHub Actions - Print a message when the install directory is added to GITHUB_PATH Signed-off-by: appleboy <[email protected]>
1 parent 497c8f1 commit a13024b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

install.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,3 +153,8 @@ if [[ ":$PATH:" != *":$INSTALL_DIR:"* ]]; then
153153
;;
154154
esac
155155
fi
156+
157+
if [ -n "${GITHUB_ACTIONS-}" ] && [ "${GITHUB_ACTIONS}" == "true" ]; then
158+
echo "$INSTALL_DIR" >>$GITHUB_PATH
159+
print_message info "Added $INSTALL_DIR to \$GITHUB_PATH"
160+
fi

0 commit comments

Comments
 (0)