Skip to content

Commit ea38315

Browse files
committed
feat(install): github actions support
Add ~/bin to path when running inside GitHub actions
1 parent 2a4bae5 commit ea38315

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/install.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,14 @@ main() {
6060
echo "export PATH=\"$HOME/bin:\$PATH\"" >> "$shell_profile"
6161
echo "Path updated! You may need to restart your shell or run 'source $shell_profile' to refresh your PATH."
6262
echo "Run '$exe --help' to get started"
63+
64+
# if $GITHUB_PATH is defined, add $HOME/bin to it
65+
if [ -n "$GITHUB_PATH" ]; then
66+
echo "$HOME/bin" >> "$GITHUB_PATH"
67+
fi
6368
fi
6469

70+
6571
echo
6672
echo "Stuck? Join our Discord at https://wokwi.com/discord"
6773
}

0 commit comments

Comments
 (0)