chore: added on: push
as github workflow need to run once to show i…
#1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Download Ollama model | ||
on: | ||
workflow_dispatch: | ||
workflow_call: | ||
inputs: | ||
model_name: | ||
required: true | ||
description: Specify model to be pulled by ollama such as llama3, phi3, etc. | ||
push: | ||
branches: | ||
- ollama-model-download | ||
jobs: | ||
download: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup Ollama | ||
run: curl -fsSL https://ollama.com/install.sh | sh | ||
- name: Pull a model | ||
run: ollama pull ${{ github.event.inputs.model_name }} | ||
- name: Copy model file to the current directory | ||
run: | | ||
./copy-model-file.sh /usr/share/ollama/.ollama/models/blobs ${{ github.event.inputs.model_name }} | ||
ls |