Add ollama-action GitHub Actions workflow for LLM automation#359
Merged
syed-reza98 merged 3 commits intomainfrom Mar 14, 2026
Merged
Add ollama-action GitHub Actions workflow for LLM automation#359syed-reza98 merged 3 commits intomainfrom
syed-reza98 merged 3 commits intomainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: syed-reza98 <71028588+syed-reza98@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add GitHub Action workflow: ollama-action for LLM automation
Add ollama-action GitHub Actions workflow for LLM automation
Mar 14, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a GitHub Actions workflow to run Ollama LLMs in CI (manual dispatch and on pushes to main), capturing the model response for downstream automation use.
Changes:
- Added
.github/workflows/ollama-action.ymlworkflow usingai-action/ollama-action@v2with configurable inputs. - Persisted the LLM response to
.github/ollama-response.txtand printed it to logs. - Ignored the generated response file via
.gitignoreto prevent accidental commits.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
.gitignore |
Ignores the generated Ollama response output file. |
.github/workflows/ollama-action.yml |
Introduces the Ollama CI workflow with inputs, execution, logging, and response persistence. |
You can also share your feedback on Copilot code review. Take the survey.
.github/workflows/ollama-action.yml
Outdated
Comment on lines
+46
to
+47
| echo "=== Ollama response ===" | ||
| echo "$response" |
|
|
||
| jobs: | ||
| run-ollama: | ||
| runs-on: ubuntu-latest |
Collaborator
|
@copilot apply changes based on the comments in this thread |
Co-authored-by: syed-reza98 <71028588+syed-reza98@users.noreply.github.com>
Contributor
Author
Applied both review suggestions in
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a workflow using
ai-action/ollama-action@v2to run Ollama LLMs in CI — useful for summarizing PRs, generating changelogs, or other AI-assisted automation tasks.Workflow (
.github/workflows/ollama-action.yml)workflow_dispatch(manual, with configurable inputs) + push tomainmodel,prompt,version,cache— all optional with sensible defaults (llama3.2, model caching enabled).github/ollama-response.txtcontents: readonly (least privilege — file is workspace-only, not committed back)${{ }}inrun:) to avoid script injection.gitignore.github/ollama-response.txtto prevent accidental commits of generated outputOriginal prompt
📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.