About github-actions
github-actions is a skill for writing and debugging GitHub Actions workflows, intended for developers configuring CI/CD automation. It covers triggers, jobs, steps, secrets, reusable workflows, matrix strategies, and runner environments.
Key features
- 01Configure triggers, jobs, and steps
- 02Set up secrets and matrix strategies
- 03Use composite actions and reusable workflows
- 04Configure multi-platform runners and container jobs
- 05Cache dependencies and manage concurrency
- 06Avoid exposing secrets in logs
Use cases
- 01Write or debug GitHub Actions YAML workflows
- 02Set up test, build, or deployment pipelines
- 03Reuse workflow steps across projects
- 04Run matrices across versions or platforms
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ full-stack-skills/ devops-skills --skill github-actionsAfter installing, type/github-actionsin Claude Code to confirm it loaded.
Bundled filesagents/openai.yamlLICENSE.txt
Details
From the project READMEWhen to use this skill
Use this skill whenever the user wants to:
- 编写或调试 GitHub Actions 工作流(
.github/workflows/*.yml) - 配置 trigger、jobs、steps、secrets、矩阵与复用
- 集成 checkout、build、test、deploy、通知
How to use this skill
- 工作流:YAML 中定义
on、jobs、steps;用actions/checkout、官方/第三方 action;secrets 在 Settings 中配置。 - 复用:composite actions、reusable workflows;矩阵策略跑多版本/多平台。
- 环境:runner 环境(Ubuntu/Windows/macOS);容器 job 时注意网络与挂载。
Best Practices
- 用
secrets存令牌与密钥;不在 log 中 echo 敏感信息。 - 关键步骤加
id与outputs便于后续步骤使用。 - 缓存依赖(actions/cache);必要时用 concurrency 取消旧运行。
Keywords
github actions, workflow, yaml, CI/CD, 工作流, 自动化
Comments
Markdown supported