I have this line in a GitHub Action:
curl https://api.github.com/repos/JJ/raku-advent-calendar-article-2019/issues/$ENV:ISSUE/comments -H "Authorization: token $ENV:TOKEN" -H "Content-Type: application/json" --data $output
I haven't found a way to assign values to $data
to make it work. GitHub Actions, or Powershell, or both, cut it, generally at a quote, but I really couldn't find out what it does and where.
This was the last I tried:
'{ `"body`": `"Merry Xmas to you too!`"}'
Note the Powershell-escapes for the double quotes. This returned this error:
curl: (6) Could not resolve host: Xmas
So, for some reason, it stopped at Merry. Any idea?
This question is similar, however, they are not using a variable to hold the result, which I need.