diff --git a/entrypoint.sh b/entrypoint.sh index d4ce81c..e525060 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,5 +4,5 @@ GITHUB_BASEURL=https://api.github.com GITHUB_API="/repos/${INPUT_REPOSITORY:-${GITHUB_REPOSITORY}}/actions/runs/${INPUT_RUN_ID:-${GITHUB_RUN_ID}}/jobs" eval "$(curl --get -Ss -H "Authorization: token ${INPUT_GITHUB_TOKEN}" -H "Accept: application/vnd.github.v3+json" "${GITHUB_BASEURL}${GITHUB_API}?per_page=${INPUT_PER_PAGE:-30}" \ | jq -r --arg job_name "${INPUT_JOB_NAME}" '.jobs | map(select(.name == $job_name)) | .[0] | @sh "job_id=\(.id) html_url=\(.html_url)"')" -echo ::set-output name=job_id::"${job_id}" -echo ::set-output name=html_url::"${html_url}" +echo "job_id=${job_id}" >> $GITHUB_OUTPUT +echo "html_url=${html_url}" >> $GITHUB_OUTPUT