fix(action): invalid quoting of JSON #8

Merged
jalil merged 1 commit from fix-action into main 2024-12-18 14:36:36 +01:00

View file

@ -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() {