agentleFS
Just-SilverJust-Silver/just-silver-skills/skills/github-actions/SKILL.md

github-actions

Skill1 starsChanged 2 months agoMITView on GitHub

Use when creating or editing GitHub Actions or Gitea Actions workflow YAML (.github/workflows/*.yml, .gitea/workflows/*.yml), publishing releases (including pre-releases), choosing trigger events (push, pull_request, schedule, workflow_dispatch), writing expressions, contexts, permissions, or troubleshooting workflow syntax and CI failures on either platform.

  • Reads credentials

57 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use gitlab-ci, react-native-brownfield-migration and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • jcsaaddupuySkill

    gitlab-ci

    GitLab CI/CD configuration guide

    Also in 6 projects that use this

  • maikotrindadeSkill

    react-native-brownfield-migration

    Provides an incremental adoption strategy to migrate native iOS or Android apps to React Native or Expo using @callstack/react-native-brownfield for initial setup. Use when planning migration steps, packaging XCFramework/AAR artifacts, and integrating them into host apps.

    Also in 4 projects that use this

  • ffsshhttiikkSkill

    nodejs

    JavaScript runtime built on Chrome's V8 JavaScript engine

    Also in 4 projects that use this

  • ihiteshguptaSkill

    terraform

    Expert in Infrastructure as Code with Terraform. Use for creating, managing, and versioning infrastructure across cloud providers.

    Also in 8 projects that use this

  • maikotrindadeSkill

    upgrading-react-native

    Upgrades React Native apps to newer versions by applying rn-diff-purge template diffs, updating package.json dependencies, migrating native iOS and Android configuration, resolving CocoaPods and Gradle changes, and handling breaking API updates. Use when upgrading React Native, bumping RN version, updating from RN 0.x to 0.y, or migrating Expo SDK alongside a React Native upgrade.

    Also in 3 projects that use this

  • Sorcha-PlatformSkill

    grpc

    Build or review gRPC services and clients in .NET. USE FOR: ASP.NET Core gRPC, protobuf contracts, unary or streaming RPC, gRPC client factory, interceptors, deadlines, cancellation, channel reuse, backend service integration. DO NOT USE FOR: broad browser-facing APIs without gRPC-Web tradeoff review, SignalR realtime hubs, plain REST APIs. INVOKES: dotnet build/test and focused service or client smoke checks when code changes.

    Also in 3 projects that use this

The file

Files
SKILL.md

GitHub / Gitea Actions 工作流

适用

  • 新建/修改 .github/workflows/*.yml 或 .gitea/workflows/*.yml
  • 选触发事件;写 if / ${{ }} / matrix;配 permissions / concurrency
  • 查 github.* / secrets / needs / matrix 等上下文
  • 排查 workflow 语法或 CI 失败

不适用:GitLab CI、Jenkins 等其他 CI。

参考文件

内容文件
顶层键、on、jobs、steps、permissions、matrix/outputsreferences/workflow-syntax.md
触发事件与 pull_request_target 安全references/events.md
${{ }}、运算符、函数、状态检查references/expressions.md
github / secrets / needs 等上下文references/contexts.md
Gitea 差异references/gitea-differences.md
质量门禁、CI 优化、部署references/ci-cd-practices.md
CD / CHANGELOG / 版本治理references/changelog-conventions.md

Gitea 基线:Server 28.4.0 + Runner 6.0.0。其他版本查对应官方文档。

校验

scripts/actionlint.exe .github/workflows/ci.yml
scripts/actionlint.exe .gitea/workflows/ci.yml   # Gitea 须显式路径
  • pwsh 不展开 *.yml,逐个列出文件。
  • gitea.* 报 undefined variable "gitea" 时改用 github.*,或 -ignore 'undefined variable "gitea"'。
  • actionlint 1.7.12 不认识 concurrency.queue,报 unexpected key "queue";用 -ignore 'unexpected key "queue"',不要删 queue: max。
  • 版本源 scripts/actionlint.version;升级用 scripts/update-actionlint.ps1。
  • actionlint 通过只证明 GitHub 语法可解析,不证明 Gitea 能解析或运行。

常见错误

  • 凭记忆写 on / permissions:查对应 reference。
  • Gitea 套用 jobs.*.environment、concurrency.queue、type: environment、{group:,labels:}、GitHub 专属 permission scope 或 GITHUB_TOKEN。
  • job 漏写 runs-on(Runner 6.0.0 下直接失败);job 级 if: 使用 matrix.*(matrix 尚未展开,应移到 step 级或 include/exclude)。
  • secrets 用于 if;pull_request_target 滥用;tag 回推忘 HEAD:main。
  • 硬编码实例地址或 owner/repo;用 ${{ github.server_url }} / ${{ github.repository }} / ${{ github.ref_name }} 拼接。
  • 回推 workflow 误以为 concurrency 是可靠队列:GitHub 默认 queue: single 会替换 pending;需多个 pending 用 queue: max,且仍要 git pull --rebase 和失败重试。Gitea 28.4 不支持 queue。
  • 发版未校验 tag == CHANGELOG == 包版本(单一版本源仓),或 Release body 用 git log 而不是 CHANGELOG.md 对应小节。
  • prerelease 写死:x.y.z-<预发布标识> 为 true,x.y.z 为 false;draft 与 prerelease 不同。
  • 重复创建 Release 不核对旧标记:Gitea 返回 409,GitHub 返回 422 already_exists;改标记用 PATCH /repos/{owner}/{repo}/releases/{id}。

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.