Skip to content

Commit

Permalink
use temp folder
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed May 31, 2024
1 parent ce4b5b5 commit 6de1ebf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ollama.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ 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 --out-summary ./summary.txt
run: yarn test:summarize --model ollama:phi3 --out ./temp
- 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');
const comment = await readFile('./temp/res.output.md', 'utf8');
await github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
Expand Down

0 comments on commit 6de1ebf

Please sign in to comment.