diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index c41c9cda3..c6a0d1b15 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -68,7 +68,7 @@ jobs: JOBINFO="$(curl --get -Ss -H "Authorization: Bearer ${GITHUB_TOKEN}" -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" "${{ github.api_url }}/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/jobs?per_page=30")" echo "${JOBINFO}" | grep "Resource not accessible by integration" && exit 1 echo "${JOBINFO}" - eval "$(echo ${JOBINFO} | jq -r --arg job_name '${{ inputs.name }}' '.jobs | map(select(.name == $job_name)) | .[0] | @sh "job_id=\(.id) html_url=\(.html_url)"')" + eval "$(echo ${JOBINFO} | jq -r --arg job_name '${{ inputs.jobs_path }}' '.jobs | map(select(.name == $job_name)) | .[0] | @sh "job_id=\(.id) html_url=\(.html_url)"')" # # Use GitHub API to create a comment on the PR COMMENT="View details about the '${{ inputs.name }}' build [${{ github.run_number }}](${html_url}) in the [Build Scan](${{ steps.mvnBuild.outputs.buildscan_uri }}) 📊"