To check the status of the last run for a specific workflow, use the following command:
gh run list --workflow=<workflow_file_name> --limit=1Example for web.yml:
gh run list --workflow=web.yml --limit=1To cancel a running workflow, you first need to get the RUN_ID of the job.
-
List running jobs to find the
RUN_ID:gh run list --workflow=<workflow_file_name>
Example for
kmp.yml:gh run list --workflow=kmp.yml
-
Cancel the run using the
RUN_ID:gh run cancel <RUN_ID>
Example:
gh run cancel 123456789