Fix release asset workflow version extraction when pyproject.toml is absent - #12
Draft
adandeigor with Copilot wants to merge 1 commit into
Draft
Fix release asset workflow version extraction when pyproject.toml is absent#12adandeigor with Copilot wants to merge 1 commit into
adandeigor with Copilot wants to merge 1 commit into
Conversation
Copilot
AI
changed the title
[WIP] Fix failing GitHub Actions job Create Release Asset
Fix release asset workflow version extraction when pyproject.toml is absent
Aug 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📋 Description
Le job GitHub Actions Create Release Asset échouait avant la création du tag/release car il tentait de lire
pyproject.toml, fichier absent dans ce dépôt.Cette PR rend l’extraction de version robuste au layout réel du repository pour éviter l’échec du workflow.
🔧 Workflow release
pyproject.tomlpar une logique tolérante (fallback) qui ne fait plus échouer le job si ce fichier n’existe pas.v<version>-<run_number>/AlgoLab v<version> (<run_number>)).🧩 Extrait de la logique ajustée
VERSION=$(python -c "from pathlib import Path; import re; p=Path('pyproject.toml'); content=p.read_text(encoding='utf-8') if p.exists() else ''; m=re.search(r'^version\s*=\s*\"([^\"]+)\"', content, re.MULTILINE); print(m.group(1) if m else '0.1.0')")🔄 Type de changement
✅ Checklist
ruff checkpasse)pytest)📸 Captures d'écran (si applicable)
📝 Notes pour les reviewers
Le changement est volontairement minimal et ciblé sur le step qui calcule
VERSIONdans le workflow release.