github-actions-setup SKILL.md skillA
github-actions-setup from strzhao/autopilot is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add strzhao/autopilot/github-actions-setup@git:20260321.6cde7e8Pins git:20260321.6cde7e8 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- strzhao/autopilot
- Path
plugins/npm-toolkit/skills/github-actions-setup/SKILL.md- Versions recorded
- 2
- Latest version
- git:20260321.6cde7e8, committed Mar 21, 2026
- First version recorded
- Mar 21, 2026
- Size
- 4,222 bytes
- Repository stars
- 32
- License
- MIT
配置 GitHub Actions 工作流,包括 CI/CD 自动触发、构建、测试等。 当用户提到"配置 GitHub Actions"、"设置 CI/CD"、"添加 workflow"、"自动构建"、"自动测试"、 "github action 触发"、"workflow 配置"、"CI 流水线"、"持续集成"时使用此技能。 也适用于需要修改现有 workflow、排查 workflow 失败、或添加新的自动化流程的场景。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# GitHub Actions 工作流配置指南
帮助快速配置 GitHub Actions 工作流,覆盖常见的 CI/CD 场景。
## 工作流基础结构
```yaml
name: Workflow Name
on:
# 触发条件
push:
branches: [main]
jobs:
job-name:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Step name
run: echo "Hello"
```
## 触发器配置
```yaml
# Push(支持 branches/paths/tags 过滤)
on:
push:
branches: [main, develop]
paths: ['src/**', 'package.json'] # 路径过滤(可选)
tags: ['v*'] # tag 匹配
# Pull Request
on:
pull_request:
branches: [main]
# Release
on:
release:
types: [published]
# 定时(cron 格式,UTC 时区)
on:
schedule:
- cron: '0 2 * * 1-5' # 工作日 UTC 2:00
# 手动触发(带参数)
on:
workflow_dispatch:
inputs:
environment:
description: 'Deploy environment'
type: choice
options: [staging, production]
# 组合触发
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
```
## 常用工作流模板
### Node.js 项目 CI
```yaml
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20, 22, 24]
…Read the whole file at its exact version.
How to install
mdr add strzhao/autopilot/github-actions-setup@sha256:fa48056ff8eb4937The line at the top of this page pins the label git:20260321.6cde7e8, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_5zg5pwghaawjpo7f)
1 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 2 versions of this file, all committed on Mar 21, 2026.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260321.6cde7e8 latest | 2026-03-21 | 6cde7e8 | 4,222 B | A | view · diff |
| git:20260321.2daedd8 | 2026-03-21 | 2daedd8 | 5,933 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (4222 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
strzhao/autopilot · 32 stars · license MIT · pushed 2026-10-28 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_5zg5pwghaawjpo7f GET https://markdownregistry.com/api/v1/resolve?ref=strzhao/autopilot/github-actions-setup GET https://markdownregistry.com/api/v1/blob/fa48056ff8eb493705a922c3b9eb1ee3570f9002d6baab09d15a74080bdb9708
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.
More from strzhao/autopilot
Every file in strzhao/autopilot