Skip to content

ai-action/setup-ollama

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

setup-ollama

action version build codecov

🦙 Set up GitHub Actions workflow with Ollama.

Quick Start

name: ollama
on: push
jobs:
  ollama:
    runs-on: ubuntu-latest
    steps:
      - name: Setup Ollama
        uses: ai-action/setup-ollama@v1

      - name: Run LLM
        run: ollama run llama3.2 'Explain the basics of machine learning.'

Usage

Install Ollama:

- uses: ai-action/setup-ollama@v1

Run a prompt against a model:

- run: ollama run tinyllama "What's a large language model?"

See action.yml.

Inputs

version

Optional: The CLI version. Defaults to 0.5.11:

- uses: ai-action/setup-ollama@v1
  with:
    version: 0.5.11

name

Optional: The CLI name. Defaults to ollama:

- uses: ai-action/setup-ollama@v1
  with:
    name: ollama

License

MIT