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

download link for ci artifacts #8

Open
bwbohl opened this issue May 26, 2021 · 4 comments
Open

download link for ci artifacts #8

bwbohl opened this issue May 26, 2021 · 4 comments

Comments

@bwbohl
Copy link
Member

bwbohl commented May 26, 2021

@bwbohl
Copy link
Member Author

bwbohl commented May 26, 2021

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

@bwbohl
Copy link
Member Author

bwbohl commented Jun 8, 2021

temporarily fixed with https://nightly.link

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

No branches or pull requests

1 participant