- Notifications
You must be signed in to change notification settings - Fork455
How to use multiline variable in a script#458
Unanswered
baxelrod-bdai asked this question inQ&A
-
I am having trouble using a multiline variable in the I found out how to convert it to a one line string, and this works fine in the
However, when I try to display this in a PR comment, I get an error.
|
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 1 comment
-
I'd recommend passing inputs through an environment variable into your script rather than inlining the expression. https://github.com/actions/github-script#use-env-as-input For example: -name:Step3uses:actions/github-script@v6env:LONG_OUTPUT:${{ steps.stepone.outputs.long2 }}with:script:| github.rest.issues.createComment({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, body: process.env.LONG_OUTPUT }) |
BetaWas this translation helpful?Give feedback.
All reactions
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment