[Core feature request] Model `matrix` context

未关闭
#368 9 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
github-actions, kotlin
领域
ci-cd, devops

调研方向

Start with the linked GitHub Actions matrix context documentation and related issues #287 and #297. Review the Kotlin DSL entry points represented by the examples, then define completion as supporting matrix.distribution.label, matrix.environment, and matrix.distribution.user-id expressions in workflow fields such as name, runs-on, and with.

由索引模型根据 Issue 内容生成。

描述

enhancement

What feature do you need?
https://docs.github.com/en/actions/learn-github-actions/contexts#matrix-context

Also look at related feature requests: #287 and #297.

Do you have an example usage?

name: Test "${{ matrix.distribution.label }}" distribution on ${{ matrix.environment }}
runs-on: ${{ matrix.environment }}
with:
    distribution: ${{ matrix.distribution.user-id }}

Is there a workaround for not having this feature? If yes, please describe it.

name = """Test "${expr("matrix.distribution.label")}" distribution on ${expr("matrix.environment")}"""
runsOn = Custom(expr("matrix.environment"))
distribution = Distribution.Custom(expr("matrix.distribution.user-id"))
主要语言
Kotlin
星标
664
派生
30
平均合并
4 天 19 小时
30 天内合并 PR
5

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

typesafegithub/github-workflows-kt 的其他 Issue

查看 typesafegithub/github-workflows-kt 的全部 Issue

相似的 Issue

更多 Kotlin Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。