Skip to content

Commit 4520918

Browse files
refactor(posts): update "How to run Ollama LLM on GitHub Actions"
Post: 2025-02-23-run-ollama-large-language-models-on-github-actions.md https://remarkablemark.medium.com/how-to-run-ollama-large-language-models-llm-on-github-actions-for-free-bb4219d09a29
1 parent 8b464e4 commit 4520918

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

_posts/2025/2025-02-23-run-ollama-large-language-models-on-github-actions.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
layout: post
33
title: How to run Ollama LLM on GitHub Actions
44
date: 2025-02-23 14:00:53
5-
excerpt: How to run Ollama large language models (LLM) on GitHub Actions for free.
5+
updated: 2025-05-01 22:43:16
6+
excerpt: How to run Ollama large language models (LLM) on GitHub Actions.
67
categories: github actions ollama llm ai ci
78
---
89

9-
This post goes over how to run [Ollama](https://ollama.com/) large language models (LLM) on [GitHub Actions](https://github.com/features/actions) for free.
10+
This post goes over how to run [Ollama](https://ollama.com/) large language models (LLM) on [GitHub Actions](https://github.com/features/actions).
1011

1112
## Ollama
1213

@@ -47,17 +48,17 @@ jobs:
4748
runs-on: macos-latest
4849
4950
steps:
50-
- name: Run LLM
51+
- name: Run model
5152
uses: ai-action/ollama-action@v1
52-
id: llm
53+
id: model
5354
with:
5455
model: llama3.2
5556
prompt: What is a large language model?
5657
5758
- name: Print response
58-
env:
59-
response: ${{ steps.llm.outputs.response }}
6059
run: echo "$response"
60+
env:
61+
response: ${{ steps.model.outputs.response }}
6162
```
6263

6364
{% endraw %}
@@ -118,10 +119,10 @@ jobs:
118119
RESPONSE=$(ollama run codellama "$PROMPT\n$(gh pr diff $PR_NUMBER)")
119120
gh pr comment $PR_NUMBER --body "$RESPONSE"
120121
env:
121-
GITHUB_TOKEN: ${{ github.token }}
122+
GH_TOKEN: ${{ github.token }}
122123
PR_NUMBER: ${{ github.event.pull_request.number }}
123124
```
124125

125126
{% endraw %}
126127

127-
See the [example](https://github.com/ai-action/ollama-github-action-demo/pull/1) for more details.
128+
Check out the [example](https://github.com/ai-action/ollama-github-action-demo/pull/1).

0 commit comments

Comments
 (0)