Skip to content
This repository was archived by the owner on Mar 3, 2026. It is now read-only.

MandalAutomations/Ollama-Action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 

Repository files navigation

Ollama-Action

TestRelease date

A GitHub composite action that installs Ollama, pulls a model, and runs a prompt — all within your workflow.

Usage

- name: Run Ollama
  uses: MandalAutomations/Ollama-Action@main
  with:
    model: 'tinyllama'
    prompt: 'Explain GitHub Actions in one sentence.'

Inputs

Input Description Required Default
model The Ollama model to use (e.g. tinyllama, llama3, mistral) No tinyllama
prompt The prompt to send to the model No
cache Whether to cache the model between runs (true/false) No false

Outputs

Output Description
response The response from the model

Example Workflow

name: Ask Ollama

on:
  workflow_dispatch:

jobs:
  ask:
    runs-on: ubuntu-latest
    steps:
      - name: Run Ollama prompt
        id: ollama
        uses: MandalAutomations/Ollama-Action@main
        with:
          model: 'tinyllama'
          prompt: 'What is the capital of France?'

      - name: Print response
        run: echo "${{ steps.ollama.outputs.response }}"

About

A GitHub composite action that installs Ollama, pulls a model, and runs a prompt all within your workflow.

Topics

Resources

Stars

Watchers

Forks

Contributors