Skip to content

IaC & CI/CD: GitHub Actions

GitHub Actions commands from the IaC & CI/CD folder.

Index
2 items

GitHub Actions: Show logs of failed steps

Safe

Only the log output of failed steps. gh run list shows recent run ids.

gh run view <run-id> --log-failed
What each part does
  1. gh run view <run-id>show a workflow run (gh run list gives the IDs)
  2. --log-failedprint only the logs of the failed steps

Also known as: gha logs · workflow failed · gh run view

GitHub Actions: Trigger a workflow manually

Safe

Kick off a workflow_dispatch workflow on a branch.

gh workflow run <workflow-file> --ref <branch>
What each part does
  1. gh workflow run <workflow-file>start a workflow that has a workflow_dispatch trigger, e.g. deploy.yml
  2. --ref <branch>branch or tag to run it on; pass inputs with -f name=value

Also known as: workflow_dispatch · gh workflow run

My DevOps Playbook by Angelo John Calleja

New runbook

GitHub not connected

Saving is handled by the site: the GitHub token is stored in Cloudflare, not in your browser. Enter the editor password (the EDITOR_PASSWORD secret) to unlock saving in this browser.

Saving commits to gelogrammer/My_DevOps_Playbook. Create a fine-grained token with access to only this repo andContents: Read and write, then paste it here. It is stored only in this browser.

src/content/docs/…