From b89ded341ee6bcf55c13a0edbea18c52560da064 Mon Sep 17 00:00:00 2001 From: "j.dev" Date: Tue, 11 Feb 2025 17:52:35 -0800 Subject: [PATCH] chore: use /home/ahnjun environment variable --- asdf-tools/action.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/asdf-tools/action.yml b/asdf-tools/action.yml index c5b21d3..566da17 100644 --- a/asdf-tools/action.yml +++ b/asdf-tools/action.yml @@ -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 }}' @@ -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