CI: Add a workflow to add a git tag via web UI

未关闭
#1,213 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

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

调研方向

首先阅读 .github/workflows/release.yml 的第 22-25 行,以了解 release workflow 如何根据 tag 反向查找一次运行。然后检查 repository 中现有的 workflow 约定,并定义一个接受 commit、通过 GitHub 的 Web UI 创建其 tag 的 workflow;当 release 流程不再要求本地创建 tag 时,即表示完成。

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

描述

CI/CD enhancement

Today before triggering the release workflow we need to create a git tag locally and push it to the remote repo, because

  1. GitHub for whatever reason does not offer a way for us to do this in the browser
  2. our release workflow needs the tag to reverse-lookup the corresponding run ID:
    https://github.com/NVIDIA/cuda-python/blob/36b8c5fa799ddd9b8c9eb8b4816258485cbeeb7c/.github/workflows/release.yml#L22-L25

However, this mixed workflow is error prone and we did accidentally pushed wrong tags in the past. We should avoid this by adding a workflow to tag (based on the commit). Then, we can consider combine this new workflow with the release workflow, so that we don't need to provide both commit and tag; just the former should be enough for everything.

主要语言
Cython
星标
3.4k
派生
329
平均合并
1 天 21 小时
30 天内合并 PR
113

贡献指南

打开贡献指南

从这里开始

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

NVIDIA/cuda-python 的其他 Issue

查看 NVIDIA/cuda-python 的全部 Issue

相似的 Issue

更多 DevOps Issue

把新 issue 发到你的邮箱

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