Skip to content

Commit

Permalink
Fix gha
Browse files Browse the repository at this point in the history
  • Loading branch information
steventkrawczyk committed Jul 26, 2023
1 parent a405e5f commit de9fcfd
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,16 @@ jobs:
- name: Create markdown
run: |
DEBUG=1 python scripts/create_comment.py
- uses: actions/github-script@v6
- name: Write comment
uses: actions/github-script@v6
with:
script: |
const report = process.env.PWD
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: report
})
import { readFile } from 'fs'
readFile('./markdown.md', 'utf8', (err, data) => {
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: data
})
});

0 comments on commit de9fcfd

Please sign in to comment.