Skip to content

Commit

Permalink
BUG: Fix more bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
khalford committed Oct 2, 2024
1 parent 4a6c780 commit 7a38474
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
services:
self-test:
image: some/test:0.3.6
image: some/test:0.3.5
3 changes: 1 addition & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ def compare_compose_version(branch_version: str, branch_path: Path, compose_path
for line in compose_file_contents:
if "image" in line:
version_str = line.strip('\n').split(":")[-1]
print(version_str)
break
if Version(branch_version) != Version(version_str):
raise VersionNotUpdated(
Expand All @@ -79,7 +78,7 @@ def compare_compose_version(branch_version: str, branch_path: Path, compose_path

if COMPOSE_PATH:
COMPOSE_PATH = Path(COMPOSE_PATH)
COMPOSE_UPDATED = compare_compose_version(branch_version, BRANCH_PATH, str(COMPOSE_PATH), APP_UPDATED)
COMPOSE_UPDATED = compare_compose_version(branch_version, BRANCH_PATH, str(COMPOSE_PATH), str(APP_PATH))
GITHUB_ENV = os.getenv('GITHUB_ENV')
with open(GITHUB_ENV, "a") as env:
env.write("compose_updated=true")
Expand Down

0 comments on commit 7a38474

Please sign in to comment.