Is there any way to update a job name or status from within a step ?

I really want to be able to run a step a have a direct hint of it’s result on the PR checks overview.
I did not find any way to perform this in the Github-Actions documentation.

For example, if I have a build job running tests, it currently shows as :

I’d like to be able to either change the job name :

Or the job status :

Ideally, I would do so from the step running the test using a reserved log syntax, for example :

echo "::set-job-status status=test passed 103 / 103"

An even better feature would be to be able to amend the current build status, maybe via a dedicated variable.

For example :

echo "::set-job-status status=${{ job.Status }} test passed 103 / 103"

A bit like this :

Is there any plan for such functionnality ?

@farigh ,

The job name is generated when staring up the job, once it generated we have no methods to change it.
I checked and tried, I did not find any Workflow commands or GitHub APIs can be used to change the job name and the job status context.

If your projects really need this feature, I recommend you directly report a feature request here. That will allow you to directly interact with the appropriate engineering team, and make it more convenient for the engineering team to collect and categorize your suggestions.

1 Like