{"id":25692691,"url":"https://github.com/ai-action/ollama-action","last_synced_at":"2025-07-15T09:05:42.184Z","repository":{"id":278966199,"uuid":"937303550","full_name":"ai-action/ollama-action","owner":"ai-action","description":"🦙 Run Ollama large language models (LLMs) with GitHub Actions.","archived":false,"fork":false,"pushed_at":"2025-07-04T16:07:41.000Z","size":54,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-04T17:21:23.377Z","etag":null,"topics":["ai","ai-action","composite-action","github-action","github-actions","github-composite-action","large-language-models","llm","ollama"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/ollama-action","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ai-action.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-02-22T20:14:48.000Z","updated_at":"2025-07-04T16:07:24.000Z","dependencies_parsed_at":"2025-04-24T05:22:52.436Z","dependency_job_id":"9e3b083c-fe62-40f3-9e3b-38b6ef0a4185","html_url":"https://github.com/ai-action/ollama-action","commit_stats":null,"previous_names":["ai-action/ollama","ai-action/ollama-action"],"tags_count":7,"template":false,"template_full_name":"remarkablemark/github-actions-composite-template","purl":"pkg:github/ai-action/ollama-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ai-action%2Follama-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ai-action%2Follama-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ai-action%2Follama-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ai-action%2Follama-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ai-action","download_url":"https://codeload.github.com/ai-action/ollama-action/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ai-action%2Follama-action/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265424342,"owners_count":23762880,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","ai-action","composite-action","github-action","github-actions","github-composite-action","large-language-models","llm","ollama"],"created_at":"2025-02-24T23:28:12.496Z","updated_at":"2025-07-15T09:05:42.176Z","avatar_url":"https://github.com/ai-action.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"ollama\" height=\"200px\" src=\"https://raw.githubusercontent.com/ai-action/assets/master/logos/ollama.svg\"\u003e\n\u003c/p\u003e\n\n# ollama-action\n\n[![version](https://badgen.net/github/release/ai-action/ollama-action)](https://github.com/ai-action/ollama-action/releases)\n[![test](https://github.com/ai-action/ollama-action/actions/workflows/test.yml/badge.svg)](https://github.com/ai-action/ollama-action/actions/workflows/test.yml)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\n🦙 Run [Ollama](https://ollama.com/) large language models (LLMs) with GitHub Actions.\n\n## Quick Start\n\n```yaml\n# .github/workflows/ollama.yml\non: push\njobs:\n  ollama:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Run model\n        uses: ai-action/ollama-action@v1\n        id: model\n        with:\n          model: llama3.2\n          prompt: Explain the basics of machine learning.\n\n      - name: Print response\n        run: echo \"$response\"\n        env:\n          response: ${{ steps.model.outputs.response }}\n```\n\n## Usage\n\nRun a prompt against a [model](https://ollama.com/library):\n\n```yaml\n- uses: ai-action/ollama-action@v1\n  id: explanation\n  with:\n    model: tinyllama\n    prompt: \"What's a large language model?\"\n\n- run: echo \"$response\"\n  env:\n    response: ${{ steps.explanation.outputs.response }}\n```\n\nSee [action.yml](action.yml)\n\n## Inputs\n\n### `model`\n\n**Required**: The language [model](https://ollama.com/library) to use.\n\n```yaml\n- uses: ai-action/ollama-action@v1\n  with:\n    model: llama3.2\n```\n\n### `prompt`\n\n**Required**: The input prompt to generate the text from.\n\n```yaml\n- uses: ai-action/ollama-action@v1\n  with:\n    prompt: Tell me a joke.\n```\n\nTo set a multiline prompt:\n\n```yaml\n- uses: ai-action/ollama-action@v1\n  with:\n    prompt: |\n      Tell me\n      a joke.\n```\n\n### `version`\n\n**Optional**: The [Ollama version](https://github.com/ai-action/setup-ollama#version). See all available [versions](https://github.com/ollama/ollama/releases).\n\n```yaml\n- uses: ai-action/ollama-action@v1\n  with:\n    version: 0.9.5\n```\n\n### `cache`\n\n**Optional**: Whether to cache the model. Defaults to `true`.\n\n```yaml\n- uses: ai-action/ollama-action@v1\n  with:\n    cache: true\n```\n\n## Outputs\n\n### `response`\n\nThe generated response message.\n\n```yaml\n- uses: ai-action/ollama-action@v1\n  id: answer\n  with:\n    model: llama3.2\n    prompt: What's 1+1?\n\n- run: echo \"$response\"\n  env:\n    response: ${{ steps.answer.outputs.response }}\n```\n\n\u003e [!NOTE]\n\u003e The environment variable is wrapped in double quotes to preserve newlines.\n\n## Articles\n\n- [Generating useful titles for automated PRs in GitHub Actions](https://jacobtomlinson.dev/posts/2025/generating-useful-titles-for-automated-prs-in-github-actions/)\n- [How to run Ollama LLM on GitHub Actions](https://medium.com/@remarkablemark/how-to-run-ollama-large-language-models-llm-on-github-actions-for-free-bb4219d09a29)\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fai-action%2Follama-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fai-action%2Follama-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fai-action%2Follama-action/lists"}