Skip to content

Commit

Permalink
fix: make verify action meaningful
Browse files Browse the repository at this point in the history
  • Loading branch information
lorepanichi committed Jun 17, 2024
1 parent 04c7b22 commit 1723aac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.task/*
.venv
venv/
publish.sh
main.sh
__pycache__
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM python:3-slim AS builder
ENV MARK="9.9.0"
ENV MARK="9.12.0"

ADD . /app
WORKDIR /app
Expand Down
4 changes: 3 additions & 1 deletion mark2confluence/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ def publish(path: str)-> tuple:
proc = subprocess.Popen(args, shell=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd = os.path.dirname(path))

try:
_, errs = proc.communicate(timeout=120)
out, errs = proc.communicate(timeout=120)
if cfg.inputs.ACTION == ACTION_VERIFY:
logger.info(f"Verify: mark compiled html: {out}")
except subprocess.TimeoutExpired:
proc.kill()
_, errs = proc.communicate()
Expand Down

0 comments on commit 1723aac

Please sign in to comment.