comment the file content to the PR #341
Unanswered
raghu-prasad-ttec
asked this question in
Q&A
Replies: 2 comments 8 replies
-
👋 In Bash, single quotes will cause the value to be taken literally rather than evaluating that command in the https://www.gnu.org/software/bash/manual/html_node/Single-Quotes.html Try using echo "$(cat sample.out)" >> $GITHUB_OUTPUT Alternatively, you could redirect the output of cat sample.out >> $GITHUB_OUTPUT |
Beta Was this translation helpful? Give feedback.
0 replies
-
@joshmgross I'm doing something similar
But i'm getting "Error: Unhandled error: SyntaxError: Invalid or unexpected token" |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The comment is showing as "$(cat sample.out)" instead of the actual file content. Below is the code for reference. Can someone what changes required to the "body: " in below code to get the required comment.
` - name: set file as an output variable
id: filestepid
run: |
echo 'FILE1_OUTPUT<<EOF' >> $GITHUB_OUTPUT
echo '$(cat sample.out)' >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
Beta Was this translation helpful? Give feedback.
All reactions