Create custom GitHub status from Github Actions
- name: Update status to pending
uses: geekodour/gh-actions-custom-status@v0.0.4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LAST_COMMIT_SHA: ${{ github.event.client_payload.LAST_COMMIT_SHA }}
with:
args: >-
--state=pending
--context=foo-status-update
--target_url=https://github.com/${{ github.repository }}/actions
This workflow is run on a repository_dispatch
event.
Flags:
-h, --help Show context-sensitive help (also try --help-long and --help-man).
--state=STATE The state of the status. Can be one of error, failure, pending, or success.
--target_url=TARGET_URL The target URL to associate with this status.
--context=CONTEXT A string label to differentiate this status from the status of other systems.
--description=DESCRIPTION A short description of the status.
make build
make docker-build
GITHUB_TOKEN
: Personal Access tokenGITHUB_REPOSITORY
: Set in the formatorg/repo
LAST_COMMIT_SHA
: SHA of the last commit in the PR.