forked from Edirom/Edirom-Online
-
Notifications
You must be signed in to change notification settings - Fork 0
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
download link for ci artifacts #8
Labels
Comments
curl \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/baz-ga/Edirom-Online/actions/artifacts
curl -L --output ./jq https://github.com/stedolan/jq/releases/download/jq-1.6/jq-osx-amd64
curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/baz-ga/Edirom-Online/actions/artifacts | ./jq -r .artifacts[0]
# save action runs to file
curl -H "Accept: application/vnd.github.v3+json" -o runs.json https://api.github.com/repos/baz-ga/Edirom-Online/actions/runs
# get last run
curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/baz-ga/Edirom-Online/actions/runs | ./jq .workflow_runs[0]
# pass downloaded file to jq
cat runs.json | ./jq
# get total count of runs from file
cat runs.json | ./jq -r .total_count |
temporarily fixed with https://nightly.link |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: