Skip to content

Commit

Permalink
use require in ollama file
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed May 31, 2024
1 parent 5f4995e commit c285aca
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 @@ -35,8 +35,8 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
import { readFile } from 'fs/promises';
const comment = await readFile('./temp/res.output.md', 'utf8');
const fs = require('fs/promises');
const comment = await fs.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 c285aca

Please sign in to comment.