Skip to content

Commit

Permalink
🤦
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemers committed Jul 31, 2024
1 parent d650e51 commit 87d0014
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}) 📊"
Expand Down

0 comments on commit 87d0014

Please sign in to comment.