| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Fantastic work! 🎉
Sorry, something went wrong.
| exit | ||
| fi | ||
|
|
||
| # Check that gh is authenticated |
There was a problem hiding this comment.
Nice addition!
Sorry, something went wrong.
| # example: v3.9.3 | ||
| local version_branch="v$VERSION" | ||
| artifacts_url=$(curl -fsSL "$workflow_runs_url" | jq -r ".workflow_runs[] | select(.head_branch == \"$version_branch\") | .artifacts_url" | head -n 1) | ||
| artifacts_url=$(gh api "$workflow_runs_url" | jq -r ".workflow_runs[] | select(.head_branch == \"$version_branch\") | .artifacts_url" | head -n 1) |
There was a problem hiding this comment.
🔥
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Notes -
In addition to moving our two hub calls to gh, I also replaced the curl calls that depend on GITHUB_TOKEN being set in ci/lib.sh with gh api calls instead; the benefit is that this also allows alternative auth (stored in ~/.config/gh/hosts.yml instead of env).
Closes #2960.