CI: Add a workflow to add a git tag via web UI
Nessuno ha ancora preso questa issue.
- Lingua principale
- Cython
- Stelle
- 3.4k
- Fork
- 329
- Merge medio
- 1g 23h
- PR unite (30g)
- 116
Descrizione
Today before triggering the release workflow we need to create a git tag locally and push it to the remote repo, because
- GitHub for whatever reason does not offer a way for us to do this in the browser
- 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.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia leggendo .github/workflows/release.yml alle righe 22-25 per capire come il workflow di release esegue la ricerca inversa di un run a partire da un tag. Esamina quindi le convenzioni di workflow esistenti nel repository e definisci un workflow che accetti un commit e ne crei il tag tramite l’interfaccia web di GitHub; il lavoro è completato quando il processo di release non richiede più un tag creato localmente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- git, github-actions
- Ambito
- ci-cd, release
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 48/100