Skip to content

Commit

Permalink
Release/1.0rc4 (#13)
Browse files Browse the repository at this point in the history
* fix conditions for release merges

* 1.0rc4

* Update version checks for 1.0.x pushes

---------

Co-authored-by: Andy Moon <[email protected]>
  • Loading branch information
breakbotz and Andy Moon authored Jun 18, 2024
1 parent 83b7ee4 commit 842f244
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/fluxus-release-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -342,15 +342,19 @@ jobs:
branch = "${{ env.BRANCH_NAME }}"
print(f"Checking package version consistency with branch: {branch}")
assert (branch.startswith("release/") or branch.startswith("dev/")
assert (branch.startswith("release/") or branch.startswith("dev/") or branch=="1.0.x"
), "This check should only run on versioned branches – check pipeline."
branch_version = branch.split("/", maxsplit=1)[1]
package_version = ToxBuilder("${{ env.project_name }}", "default").package_version
assert (
package_version == branch_version
), f"Package version '{package_version}' does not match '{branch_version}' from branch."
if branch=="1.0.x":
branch_version = branch[:-2]
package_version = ToxBuilder("${{ env.project_name }}", "default").package_version
assert package_version.startswith(branch_version), f"Package version '{package_version}' does not match '{branch_version}' from branch."
else:
branch_version = branch.split("/", maxsplit=1)[1]
package_version = ToxBuilder("${{ env.project_name }}", "default").package_version
assert (
package_version == branch_version
), f"Package version '{package_version}' does not match '{branch_version}' from branch."
print("Check passed.")
EOF
Expand Down

0 comments on commit 842f244

Please sign in to comment.