gh-actions
Installation
SKILL.md
GitHub Actions Best Practices
When writing or modifying GitHub Actions workflows (.github/workflows/*.yml), follow these guidelines.
Action Versions
Never guess action versions. Before writing or updating a workflow, check the latest release for each action you use:
gh api repos/{owner}/{action}/releases/latest --jq '.tag_name'
The {owner}/{action} maps directly to the GitHub repo — e.g. actions/checkout lives at github.com/actions/checkout.
For example:
gh api repos/actions/checkout/releases/latest --jq '.tag_name'
gh api repos/actions/setup-node/releases/latest --jq '.tag_name'