question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Job information cannot be obtained if the job is renamed.

See original GitHub issue

Describe 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. Screen Shot 2020-09-03 at 12 04 40 PM

Here is a sample report in Slack after the behavior changed: Screen Shot 2020-09-03 at 12 04 12 PM

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:closed
  • Created 3 years ago
  • Comments:17 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
jaroldwongcommented, Sep 3, 2020

Have you tried adding the MATRIX_CONTEXT? https://action-slack.netlify.app/fields

0reactions
teebucommented, May 4, 2021

The 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found