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

オープン
#1,213 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
git, github-actions
領域
ci-cd, release

調査の方向性

.github/workflows/release.yml の 22-25 行目を読んで、release workflow がタグから run を逆引きする方法を理解することから始めます。次に、リポジトリに既存の workflow の規約を調査し、コミットを受け取って GitHub の Web UI を通じてそのタグを作成する workflow を定義します。完了条件は、release プロセスでローカルに作成したタグが不要になることです。

索引モデルが 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時間
マージ済み PR(30日)
113

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

NVIDIA/cuda-python のほかの issue

NVIDIA/cuda-python の issue をすべて見る

似ている issue

DevOps の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。