fix(action): invalid quoting of JSON #8
1 changed files with 4 additions and 1 deletions
|
@ -72,7 +72,10 @@ runs:
|
|||
"$GITHUB_API_URL/repos/$GITHUB_REPOSITORY/actions/tasks" \
|
||||
-H "Authorization: token $GITHUB_TOKEN" \
|
||||
-H 'accept: application/json' |
|
||||
jq --raw-output '[.workflow_runs[] | select(.name == '"$JOB_NAME"' and .head_branch == '"$HEAD_BRANCH"')] | first | .url'
|
||||
jq --raw-output \
|
||||
--arg name "$JOB_NAME" \
|
||||
--arg head_branch "$HEAD_BRANCH" \
|
||||
'[.workflow_runs[] | select(.name == $name and .head_branch == $head_branch)] | first | .url'
|
||||
}
|
||||
# USAGE: has_report <RUN_URL>
|
||||
has_report() {
|
||||
|
|
Loading…
Reference in a new issue