diff --git a/action.yml b/action.yml index 86efef0..3260be1 100644 --- a/action.yml +++ b/action.yml @@ -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 has_report() {