Clarify case-(in)sensitivity for `matrix.<keys>`

未关闭 适合新手
#27,200 16 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
68/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
冷清
技术栈
github-actions
领域
documentation

调研方向

从 issue 中链接的 workflow 语法文章和 matrix 上下文部分开始,重点关注其中如何描述 matrix 的键和值。根据周边文档确认大小写敏感行为,然后在受影响的文章中添加明确说明,并验证措辞与现有的大小写敏感说明保持一致。

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

描述

actions content never-stale waiting for review
Code of Conduct
What article on docs.github.com is affected?

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
https://docs.github.com/en/actions/learn-github-actions/contexts#matrix-context

What part(s) of the article would you like to see updated?

Add an indication whether or not matrix elements are case sensitive.

Additional information

Some sections indicate if items are case sensitive / case insensitive.

Developers of one project w/ which I have some affiliation were asking whether matrix.<key> would be case sensitive.

Here's a subset of the workflow they had:

jobs:
  linux:
    strategy:
      fail-fast: false
      matrix:
        arch:
          - amd64
        include:
          - arch: amd64
            CC: x86_64-linux-gnu
          - arch: arm64
            CC: aarch64-linux-gnu
    runs-on: ubuntu-22.04
    env:
      AR: ${{ matrix.CC }}-ar
      CHOST: ${{ matrix.cc }}
      CC: ${{ matrix.cc }}-gcc
      CPP: ${{ matrix.cc }}-cpp
      CXX: ${{ matrix.cc }}-g++
主要语言
TypeScript
星标
20.9k
派生
68.8k
平均合并
15 小时 4 分钟
30 天内合并 PR
103

贡献指南

打开贡献指南

从这里开始

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

github/docs 的其他 Issue

查看 github/docs 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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