You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would be super useful if GitHub action job context exposed fields like:
job.id - id of job
job.name - Job name defined in workflow file
job.run_name - Runtime job name (may be dynamic)
job.logs_html_url (or some other name) - Url pointing to current job run logs something like ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/job/${{ job.id }}
My use case is that I want to notify someone and attach job run logs url inside notification. Currently only way to do it that I know of is like this:
- name: Get report details urluses: Tiryoh/gha-jobid-action@08c36ee4cd7fe2e5e1facbaef6799c38e41532c4 # v0.1.2id: jobwith:
github_token: ${{ secrets.GITHUB_TOKEN }}# remember to update this parameter if job name changesjob_name: My Job Name
As you probably noticed if job name changes I need to remember to also update steps using job name. If there was log url provided then I would not need to do anything. If there was job name provided I could use ${{ job.name }} in my steps and do not change anything when job name changes.
All this would using GH Actions easier than it is now. Thank you 🙏
ActionsBuild, test, and automate your deployment pipeline with world-class CI/CDProduct Feedback
1 participant
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Select Topic Area
Product Feedback
Body
Would be super useful if GitHub action
job
context exposed fields like:job.id
- id of jobjob.name
- Job name defined in workflow filejob.run_name
- Runtime job name (may be dynamic)job.logs_html_url
(or some other name) - Url pointing to current job run logs something like${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/job/${{ job.id }}
My use case is that I want to notify someone and attach job run logs url inside notification. Currently only way to do it that I know of is like this:
or use action like
And then use it when notifying someone
As you probably noticed if job name changes I need to remember to also update steps using job name. If there was log url provided then I would not need to do anything. If there was job name provided I could use
${{ job.name }}
in my steps and do not change anything when job name changes.All this would using GH Actions easier than it is now. Thank you 🙏
Beta Was this translation helpful? Give feedback.
All reactions