Skip to content

Fix release workflow tag-version check by exporting TAG_VERSION#68

Merged
espenhgn merged 3 commits into
mainfrom
copilot/fix-22667126-551380258-d692d635-b384-4bb6-b470-b80dd92f8e7f
Apr 21, 2026
Merged

Fix release workflow tag-version check by exporting TAG_VERSION#68
espenhgn merged 3 commits into
mainfrom
copilot/fix-22667126-551380258-d692d635-b384-4bb6-b470-b80dd92f8e7f

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 21, 2026

The release workflow failed on tag pushes because TAG_VERSION was set in shell scope only, while the inline Python check reads from os.environ. This change makes the variable available to Python and adds a workflow test assertion to prevent regressions.

Changes proposed in this pull request:

  • Workflow fix
    • Export TAG_VERSION before invoking the inline Python version/tag consistency check in .github/workflows/release.yml.
    • Example:
      export TAG_VERSION="${GITHUB_REF_NAME#v}"
      python - <<'PY'
      import os
      expected = os.environ["TAG_VERSION"]
      PY
  • Regression coverage
    • Update tests/test_release_workflow.py to assert the workflow includes export TAG_VERSION="${GITHUB_REF_NAME#v}".

Before submitting

  • I've read and followed all steps in the Making a pull request
    section of the CONTRIBUTING docs.
  • I've updated or added any relevant docstrings following the syntax described in the
    Writing docstrings section of the CONTRIBUTING docs.
  • If this PR fixes a bug, I've added a test that will fail without my fix.
  • If this PR adds a new feature, I've added tests that sufficiently cover my new functionality.

Copilot AI linked an issue Apr 21, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Copilot Request Fix release workflow tag-version check by exporting TAG_VERSION Apr 21, 2026
Copilot AI requested a review from espenhgn April 21, 2026 09:53
@espenhgn espenhgn marked this pull request as ready for review April 21, 2026 10:22
@espenhgn espenhgn merged commit 1e78ebf into main Apr 21, 2026
7 checks passed
@espenhgn espenhgn deleted the copilot/fix-22667126-551380258-d692d635-b384-4bb6-b470-b80dd92f8e7f branch April 21, 2026 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix Create release on tag / release (push)

2 participants