curl icon indicating copy to clipboard operation
curl copied to clipboard

Get curl response and parse it

Open Misiu opened this issue 5 years ago • 2 comments
trafficstars

I want to create an action that will allow me to get timing info of a specific run. I asked about that on GitHub community page and got a couple of endpoints I need to query. I'd like to use your action, but I can't find any sample on how to save response and use it in other places. My topic on the community: https://github.community/t5/GitHub-Actions/Get-timing-info-of-the-previous-job/m-p/45250

My question is: how can I store curl response to be able to use it in other steps of my job?

Misiu avatar Feb 14 '20 11:02 Misiu

@Misiu Did you find a solution to this question?

awha86 avatar Apr 10 '20 07:04 awha86

@awha86 take a look at this post: https://github.community/t5/GitHub-Actions/Checkout-with-code-from-the-latest-release/m-p/47044#M6699

there is a line that might be helpful: echo "::set-output name=releasetag::$(curl -s https://api.github.com/repos/weide-zhou/ticket13/releases/latest | jq '.tag_name' | sed 's/\"//g')"

if you figure out a query that will get timing info please post it here.

Misiu avatar Apr 10 '20 08:04 Misiu