Job information cannot be obtained if the job is renamed.
See original GitHub issueDescribe the bug About two weeks ago the job field of our Github Action reports in Slack changed to report “Job is not found. Check the matrix.” The Action configuration has not changed in that time. To our knowledge nothing related to the Github Action or our git workflow or team activity has changed.
Expected behavior The expected behavior is the Slack message produced by the action to include the job name from the Githhub action configuration.
Screenshots Here is a sample report in Slack before the behavior changed.
Here is a sample report in Slack after the behavior changed:
Additional context Here is the config from our Github Action configuration:
- uses: 8398a7/action-slack@v3
with:
icon_emoji: ':octocat:'
status: ${{ job.status }}
fields: repo,author,eventName,workflow,job
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CI_CHANNEL_WEBHOOK }}
if: always() # Pick up events even if the job fails or is canceled.
Issue Analytics
- State:
- Created 3 years ago
- Comments:17 (9 by maintainers)
Top Results From Across the Web
Warning message when attempting to rename or delete a job ...
Currently you can rename or delete any job without any further checks. If this job is still included / referenced in another job,...
Read more >Configuring SuccessFactors Employee Central Job Info into ...
Make sure the Base Object is “Job Information” and the “if” statement ... In my example, I renamed the portlet to reflect Work...
Read more >Renaming job in jenkins/hudson - Stack Overflow
You can rename selected job through jenkins UI by following these steps: job>configure>Advanced Project Options>Display Name.
Read more >rename_job Subcommand -- Rename a Job - TechDocs
The rename_job subcommand renames an existing job, and all dependencies reflect the changed name for that specific job. A job cannot be renamed ......
Read more >Creating, Running, and Managing Jobs
You can create a job by pointing to a named program instead of inlining its action. To create a job using a named...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Have you tried adding the
MATRIX_CONTEXT
? https://action-slack.netlify.app/fieldsThe job_name did the trick for me. It was kind of tricky to find, I didn’t realize it was required if you use custom job names.