Skip to content

Commit

Permalink
also add comment on octokit
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed May 31, 2024
1 parent eb60662 commit d343100
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/ollama.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,18 @@ jobs:
- name: download ollama docker
run: docker run -d -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama
- name: run summarize-ollama-phi3
run: yarn test:summarize --model ollama:phi3
run: yarn test:summarize --model ollama:phi3 --out-summary ./summary.txt
- name: Add comment to PR
uses: actions/github-script@v5
if: github.event_name == 'pull_request'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
import { readFile } from 'fs/promises';
const comment = await readFile('./summary.txt', 'utf8');
await github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: comment
})

0 comments on commit d343100

Please sign in to comment.