We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9df02e commit afb8662Copy full SHA for afb8662
ci/lib.sh
@@ -57,8 +57,8 @@ arch() {
57
# https://developer.github.com/v3/actions/workflow-runs/#list-workflow-runs
58
get_artifacts_url() {
59
local artifacts_url
60
- local workflow_runs_url="repos/:owner/:repo/actions/workflows/ci.yaml/runs?event=pull_request"
61
local version_branch="v$VERSION"
+ local workflow_runs_url="repos/:owner/:repo/actions/workflows/ci.yaml/runs?event=pull_request&branch=$version_branch"
62
artifacts_url=$(gh api "$workflow_runs_url" | jq -r ".workflow_runs[] | select(.head_branch == \"$version_branch\") | .artifacts_url" | head -n 1)
63
if [[ -z "$artifacts_url" ]]; then
64
echo >&2 "ERROR: artifacts_url came back empty"
0 commit comments