Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use /home/ahnjun environment variable #109

Merged
merged 1 commit into from
Feb 12, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions asdf-tools/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,23 @@ runs:
mv asdf /usr/local/bin/
rm -f asdf.tar.gz
which asdf
echo 'export PATH="${ASDF_DATA_DIR:-/home/runner/.asdf}/shims:$PATH"' >> /home/runner/.bashrc
source /home/runner/.bashrc
echo "🏠$HOME"
echo 'export PATH="${ASDF_DATA_DIR:-~/.asdf}/shims:$PATH"' >> ~/.bash_profile
source ~/.bash_profile
echo "$PATH"
echo "✅asdf installed successfully"
shell: bash

- name: Cache tools
# See https://github.com/actions/cache/commits/main/
# See https://github.com/actions/cache/commits/main/
uses: actions/cache@36f1e144e1c8edb0a652766b484448563d8baf46
with:
path: /home/runner/.asdf
path: ~/.asdf
key: ${{ runner.os }}-${{ inputs.version }}-${{ hashFiles('**/.tool-versions') }}

- name: Install asdf tools
run: |
echo ${{ inputs.context }}
cd ${{ inputs.context }}

plugins_str=$'${{ inputs.plugins }}'
Expand Down Expand Up @@ -69,10 +71,10 @@ runs:

echo "➡️$tool $version..."
asdf install "$tool" "$version" || true
which "$tool"
fi
done < .tool-versions

asdf reshim
asdf install || true
ls -al ~/.asdf/installs
shell: bash