Skip to content

Commit

Permalink
chore: add step logs
Browse files Browse the repository at this point in the history
  • Loading branch information
junminahn committed Feb 11, 2025
1 parent f9b9f94 commit 7613372
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions asdf-tools/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ runs:
plugins_str=$'${{ inputs.plugins }}'
plugins=(${plugins_str//$'\n'/ })
echo "✅Adding additional plugins..."
for plugin in "${plugins[@]}"
do
readarray -d '=' -t keyurl <<< "$plugin"
Expand All @@ -51,9 +52,11 @@ runs:
asdf plugin add ${keyurl[0]} ${keyurl[1]} || true
done
echo "✅Adding main plugins..."
cat .tool-versions | cut -f 1 -d ' ' | xargs -n 1 asdf plugin add || true
asdf plugin update --all
echo "✅Installing tools..."
while read -r line; do
# Skip empty lines or lines starting with comments (#)
if [[ -n "$line" && ! "$line" =~ ^# ]]; then
Expand All @@ -66,4 +69,5 @@ runs:
done < .tool-versions
asdf reshim
asdf install
shell: bash

0 comments on commit 7613372

Please sign in to comment.