Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github Actions BUILD_URI does not include job id #318

Open
miki725 opened this issue Jun 6, 2024 · 0 comments
Open

Github Actions BUILD_URI does not include job id #318

miki725 opened this issue Jun 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@miki725
Copy link
Collaborator

miki725 commented Jun 6, 2024

as per https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables we link to action id:

$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID

however that omits the job id of the action run and goes to the summary page. if there are multiple jobs within that workflow its very hard to say from which job report is correlated to

doesnt look like its trivial to add job id though as its not exposed as env var and there are other things to consider:

  • action might have multiple jobs so hitting API endpoint for all jobs might yield multiple job ids
  • matrix jobs

some useful urls

https://stackoverflow.com/questions/71240338/obtain-job-id-from-a-workflow-run-using-contexts
https://github.com/orgs/community/discussions/123637
https://github.com/orgs/community/discussions/8945

@miki725 miki725 added the bug Something isn't working label Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant