H there,
I have a github actions pipeline that uses github-script
to publish comments on my prs e.g
jobs:
my-job:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v6
with:
script: |
const output = `line one n line two'
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: output
})
I want the output to be published on two separate lines but nothing works. Thanks for any suggestions