Skip to content

chore: added on: push as github workflow need to run once to show i… #1

chore: added on: push as github workflow need to run once to show i…

chore: added on: push as github workflow need to run once to show i… #1

Workflow file for this run

name: Download Ollama model
on:
workflow_dispatch:
workflow_call:
inputs:
model_name:
required: true

Check failure on line 7 in .github/workflows/download.yml

View workflow run for this annotation

GitHub Actions / Download Ollama model

Invalid workflow file

The workflow is not valid. .github/workflows/download.yml (Line: 7, Col: 9): Required property is missing: type
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