Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get curl response and parse it #2

Open
Misiu opened this issue Feb 14, 2020 · 2 comments
Open

Get curl response and parse it #2

Misiu opened this issue Feb 14, 2020 · 2 comments

Comments

@Misiu
Copy link

Misiu commented Feb 14, 2020

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?

@awha86
Copy link

awha86 commented Apr 10, 2020

@Misiu Did you find a solution to this question?

@Misiu
Copy link
Author

Misiu commented Apr 10, 2020

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants