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), 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
  • Commits and pushes

37 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use react-native-brownfield-migration, upgrading-react-native and 8 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.
  • 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

  • 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

  • ihiteshguptaSkill

    terraform

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

    Also in 4 projects that use this

  • NVIDIASkill

    github

    Interact with GitHub using the gh CLI restricted to REST API only (no GraphQL). Use when the user wants to work with GitHub issues, pull requests, repos, releases, or Actions — especially in sandboxed environments where the GraphQL endpoint may be blocked. Trigger keywords - github, gh, pull request, PR, github issue, github actions, workflow, release, gh api.

    Also in 5 projects that use this

  • akornmeierSkill

    docker

    Guide for using Docker - a containerization platform for building, running, and deploying applications in isolated containers. Use when containerizing applications, creating Dockerfiles, working with Docker Compose, managing images/containers, configuring networking and storage, optimizing builds, deploying to production, or implementing CI/CD pipelines with Docker.

    Also in 3 projects that use this

  • OpenAISkill

    observability

    Vercel Observability expert guidance — Drains (logs, traces, speed insights, web analytics), Web Analytics, Speed Insights, runtime logs, custom events, OpenTelemetry integration, and monitoring dashboards. Use when instrumenting, debugging, or optimizing application performance and user experience on Vercel.

    Also in 3 projects that use this

The file

Files
SKILL.md

GitHub / Gitea Actions 工作流编写

Overview

GitHub Actions 与 Gitea Actions 约 95% 语法通用(后者兼容前者)。禁止凭记忆臆造语法——所有键、事件、表达式、上下文以官方文档为准,references/ 已提炼要点,按需加载。

When to Use

  • 新建/修改 .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 目标必读:目录、token、权限、版本差异references/gitea-differences.md
质量门禁、CI 优化、部署策略references/ci-cd-practices.md
CD/发版/Release(含 push.tags / releases API / cd.yml)references/ci-cd-practices.md + references/changelog-conventions.md 必读(CHANGELOG 是输入,Release 引用它;单一版本源仓 tag==CHANGELOG==包版本 一致性进流水线;monorepo/多制品仓先识别各自版本源,不强行统一)

凡文件含 push.tags、releases API、CHANGELOG 或任务含“发版/CD/Release”,必须走此分支;绕过即违规,gitea-differences.md 的 git log 演示不得覆盖本分支。

先确认平台:GitHub → 1-4;Gitea → 1-4 + gitea-differences.md 必读(版本未知默认按 1.27 保守编写;版本已知或语法存疑时以对应版本官方文档为准,本文件只是速查)。

校验

scripts/actionlint.exe(Windows amd64, v1.7.12)支持单/多文件与 stdin:scripts/actionlint.exe .github/workflows/ci.yml;Gitea 须显式路径。pwsh 下 *.yml 不自动展开,逐个列出。误报 gitea 用 -ignore 'undefined variable "gitea"'。版本源 scripts/actionlint.version,先跑 scripts/update-actionlint.ps1 单次保鲜。

Common Mistakes

  • 凭记忆写 on / permissions → 必读对应 reference
  • Gitea 套用 environment / {group:,labels:} / 专属 scope / GITHUB_TOKEN
  • 目标 Gitea 为 1.27(仅 always())却用标准函数 → 用事件过滤与 == 替代(1.28+ 目标才可用函数)
  • secrets 误用于 if、pull_request_target 滥用、tag 回推忘 HEAD:main
  • 硬编码 http://server:3500 / 固定 owner/repo → 用 ${{ github.server_url }}/${{ github.repository }}/${{ github.ref_name }} 动态拼接(gitea-differences.md Release/回推通用模板,push 需去协议头)
  • 发版流水线未校验 tag == CHANGELOG == package.json(单一版本源仓;monorepo/多制品按各自版本源)或 Release body 非来自 CHANGELOG.md(见 changelog-conventions.md 一致性卡点)→ CD 发版必须从 CHANGELOG.md 该版本小节提取 body,git log 堆砌属违规
  • 带 git push 回推的 workflow 用 cancel-in-progress: true 或各用不同 group 名 → 取消丢提交 / 照样 push 冲突;须多个 workflow 共用同一 group 名 + cancel-in-progress: false 排队(见 ci-cd-practices.md「多 workflow 回推排队」)

发版(CD)落地清单

写完/检查含 push.tags / releases / cd.yml 的 workflow 后逐项过:

  • CHANGELOG.md 存在且顶部有 ## [Unreleased],发版前已整理为 ## [x.y.z] - YYYY-MM-DD(见 references/changelog-conventions.md)
  • CD 含 tag == CHANGELOG == package.json 一致性校验(单一版本源仓),不一致即 fail
  • Release body 来自 CHANGELOG.md 该版本小节截段,非 git log 堆砌(模板见 references/gitea-differences.md「Gitea Release 发布」)

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.