File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 82
82
# ${{env.UNTWEET_KEYWORD}} removed previous tweet [above](${{steps.get-comment-url.outputs.comment-url}}).
83
83
- name : extract the new tweet message
84
84
id : get-comment-body
85
+ env :
86
+ COMMENT_BODY : ${{github.event.comment.body}}
85
87
run : |
86
- body=$(echo "${{github.event.comment.body}} " | sed '1 s/#tweet//' | sed '1 s/ //')
88
+ body=$(echo "$COMMENT_BODY " | sed '1 s/#tweet//' | sed '1 s/ //')
87
89
echo ::set-output name=tweet_length::$(echo $body | tr -d '\n\r%' | wc -c)
88
90
body_quote=$(echo $body | sed 's/^/> /')
89
91
# escape string content to preserve new lines
Original file line number Diff line number Diff line change 21
21
- name : if tweet CI comment is found, extract tweet from comment body
22
22
id : extract-tweet
23
23
if : ${{steps.fc.outputs.comment-id != null}}
24
+ env :
25
+ COMMENT_BODY : ${{steps.fc.outputs.comment-body}}
24
26
run : |
25
- body=$(echo "${{steps.fc.outputs.comment-body}} " | sed '1d' | sed 's/> //')
27
+ body=$(echo "$COMMENT_BODY " | sed '1d' | sed 's/> //')
26
28
# escape file content to preserve new lines
27
29
# (see example in https://github.com/peter-evans/create-or-update-comment)
28
30
body="${body//'%'/'%25'}"
You can’t perform that action at this time.
0 commit comments