Skip to content

Fix Create release on tag / release (push) #67

Description

@espenhgn

The GitHub action step "Create release on tag / release (push)" fails with:

Run TAG_VERSION="${GITHUB_REF_NAME#v}"
  TAG_VERSION="${GITHUB_REF_NAME#v}"
  python - <<'PY'
  import pathlib
  import os
  
  expected = os.environ["TAG_VERSION"]
  values = {}
  exec(pathlib.Path("version/version.py").read_text(), None, values)
  actual = values["VERSION"]
  
  if actual != expected:
      raise SystemExit(
          f"version/version.py VERSION={actual!r} "
          f"does not match tag {expected!r}"
      )
  PY
  shell: /usr/bin/bash -e {0}
Traceback (most recent call last):
  File "<stdin>", line 4, in <module>
  File "<frozen os>", line 685, in __getitem__
KeyError: 'TAG_VERSION'
Error: Process completed with exit code 1.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions