Skip to content

Commit

Permalink
use $GITHUB_ACTION_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelcolvin committed Dec 8, 2024
1 parent 11d35ca commit e53b227
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ runs:
- id: cache-ollama-install
uses: actions/cache@v4
with:
path: ./ollama-run
path: ./.ollama-install
key: ollama-install-${{ inputs.cache-key }}-${{ hashFiles('install-ollama.sh') }}

- id: cache-ollama-models
Expand All @@ -26,10 +26,10 @@ runs:
key: ollama-models-${{ inputs.cache-key }}

- if: steps.cache-ollama-install.outputs.cache-hit != 'true'
run: install-ollama.sh
run: $GITHUB_ACTION_PATH/install-ollama.sh
shell: bash

- run: echo $(pwd)/ollama-run/bin >> $GITHUB_PATH
- run: echo $(pwd)/.ollama-install/bin >> $GITHUB_PATH
shell: bash

- run: ollama start &
Expand Down
4 changes: 2 additions & 2 deletions install-ollama.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ case "$ARCH" in
esac

curl -L https://ollama.com/download/ollama-linux-${ARCH}.tgz -o ollama.tgz
mkdir -p ollama-run
tar -C ollama-run -xzf ollama.tgz
mkdir -p .ollama-install
tar -C .ollama-install -xzf ollama.tgz
rm ollama.tgz

0 comments on commit e53b227

Please sign in to comment.