Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Find release by tag name instead of title
Browse files Browse the repository at this point in the history
rvermeulen committed Sep 20, 2023

Unverified

This user has not yet uploaded their public signing key.
1 parent 5c2123e commit 24ce5bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/release/update-release-assets.py
Original file line number Diff line number Diff line change
@@ -271,7 +271,7 @@ def main(args: 'argparse.Namespace') -> int:
print(f"Error: invalid version {release_version} use by release branch. Reason {e}", file=sys.stderr)
return 1

releases = [release for release in repo.get_releases() if release.title == f"v{release_version}"]
releases = [release for release in repo.get_releases() if release.tag_name == f"v{release_version}"]
if len(releases) != 1:
print(f"Error: expected exactly one release for {release_version}, but found {len(releases)}", file=sys.stderr)
return 1

0 comments on commit 24ce5bc

Please sign in to comment.