From b2cb383cb966cd345c65ac3c69baf982dc8f1433 Mon Sep 17 00:00:00 2001 From: Duy Hung Tran Date: Thu, 22 Feb 2024 11:02:49 +0700 Subject: [PATCH] feat: cache in gh workflow to cache ollama --- .github/actions/setup-ai/action.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/actions/setup-ai/action.yml b/.github/actions/setup-ai/action.yml index ab64b52..9905800 100644 --- a/.github/actions/setup-ai/action.yml +++ b/.github/actions/setup-ai/action.yml @@ -8,15 +8,14 @@ runs: id: cache-ollama uses: actions/cache@v4 with: - path: ~/.local + path: ~/.ollama key: ollama - name: Install ollama shell: bash - run: curl -fsSL https://ollama.com/install.sh | sh + run: curl -fsSL https://ollama.com/install.sh | sh && - name: Start ollama - if: steps.cache-ollama.outputs.cache-hit != 'true' shell: bash run: ollama pull tinydolphin