Skip to content

Instantly share code, notes, and snippets.

@chapmanjacobd
Created January 28, 2026 08:16
Show Gist options
  • Select an option

  • Save chapmanjacobd/53fd51d2b1897746b6c7c7d901281d6d to your computer and use it in GitHub Desktop.

Select an option

Save chapmanjacobd/53fd51d2b1897746b6c7c7d901281d6d to your computer and use it in GitHub Desktop.

GitHub Actions rerun

gh run list --repo chapmanjacobd/iiab --workflow="image-raspios.yml" --status in_progress --json databaseId --jq '.[].databaseId' | xargs -r -n1 gh run cancel --force --repo chapmanjacobd/iiab
gh workflow run --repo chapmanjacobd/iiab --ref raspios-img image-raspios.yml
gh run list --repo chapmanjacobd/iiab --workflow="image-raspios.yml" --json url,workflowName,number,conclusion --template '{{range .}}#{{.number}} {{if eq .conclusion "success"}}{{autocolor "green" .conclusion}}{{else}}{{autocolor "red" .conclusion}}{{end}} {{hyperlink .url (autocolor "blue+u" .workflowName)}}{{"\n"}}{{end}}' --limit 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment