Change recommendation for ci-build-id?
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- github-actions, javascript
- 领域
- ci-cd
调研方向
首先追踪当前 ci-build-id 的生成方式,以及 action 如何读取 GitHub Actions 上下文。将该行为与 github.run_id 和 github.run_attempt 进行比较,包括重新运行和并行执行,然后确定提议的更改需要实现、编写文档,还是两者都需要。验证了该建议,并且项目现有的检查覆盖了产生的行为,即视为完成。
由索引模型根据 Issue 内容生成。
描述
Hello!
Thanks for this action! It looks like Github has recently added context support for github.run_attempt. This action currently has to do backflips with the GH API in order to generate a unique (but predictable) ci-build-id property, but with the addition of run_attempt, I think you could probably deprecate that complexity. Eg:
- name: E2E Tests
uses: cypress-io/github-action@v2
with:
record: true
parallel: true
ci-build-id: "${{ github.repository }}-${{ github.run_id }}-${{ github.run_attempt}}"
I think this build ID would be guaranteed unique across all of Github for every run, even for reruns. github.run_attempt hasn't made the GHA documentation yet, so I'm not sure if it's stable enough to recommend right now, but I've verified that it's present for all of the current "Github Provided" runners.
- 主要语言
- JavaScript
- 星标
- 1.5k
- 派生
- 356
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 28
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
cypress-io/github-action 的其他 Issue
-
Renovate: lock file maintenance fails in Yarn Modern可能重新可做 关联的 PR 已关闭且未合并。 未关闭bug renovate
难度 2/5 1-3 小时 新手友好度 76/100
cypress-io/github-action#1910 · 3 条评论 ·
维护者通常 1 天内回复
-
renovate
难度 2/5 1-3 小时 新手友好度 48/100
cypress-io/github-action#1911 ·
维护者通常 1 天内回复
-
Yarn v1 Classic unsupported - deprecation is due可能重新可做 @MikeMcC399 于 129 天前认领,目前没有进行中的 PR。 未关闭documentation
cypress-io/github-action#1819 · 2 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Migrate to ESM未关闭type: enhancement
难度 5/5 一周以上 新手友好度 35/100
cypress-io/github-action#1647 · 4 条评论 ·
维护者通常 1 天内回复
-
Cypress.env deprecation / cy.env addition可能重新可做 @MikeMcC399 于 64 天前认领,目前没有进行中的 PR。 未关闭tests type: enhancement
cypress-io/github-action#1620 · 8 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 cypress-io/github-action 的全部 Issue
相似的 Issue
-
status: ready
难度 2/5 1-3 小时 新手友好度 68/100
melodic-software/claude-code-plugins#14389 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
needs triage
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 2/5 1-3 小时 新手友好度 83/100
Fei2411/DeepSeek-Bot#1194 ·