Skip to content

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

@espenhgn

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.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions