Skip to content

GitHub Actions Status Line #24013

Discussion options

You must be logged in to vote

This is done through the GitHub status API. I don’t think you can update the status of a workflow, since that is handled directly by GitHub Actions (but try it…I might be wrong).

Instead, you can create your own status by using the GitHub CLI like this in the workflow:

gh api -X POST "repos/$REPOSITORY/statuses/$SHA" \
            -f state="failure" \
            -f description="Lint errors found: src/index.ts line 5: @typescript-eslint/no-explicit-any" \
            -f context="My tslinting"

Read the full docs for all the details.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants