From d54f4127930b24848a46d7096c36962c3e8f44fd Mon Sep 17 00:00:00 2001 From: tooomm Date: Mon, 24 Jan 2022 15:38:34 +0100 Subject: [PATCH] Update __main__.py --- magic_spoiler/__main__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/magic_spoiler/__main__.py b/magic_spoiler/__main__.py index 243f7bf3..5da6985f 100644 --- a/magic_spoiler/__main__.py +++ b/magic_spoiler/__main__.py @@ -5,6 +5,7 @@ import contextvars import datetime import hashlib import json +import os import pathlib import shutil import time @@ -644,7 +645,7 @@ def main() -> None: changed |= delete_old_files() # Set output to deploy - if CI == true: + if os.environ('CI'): if changed: print("::set-output name=deploy::true") print("::notice title=Updates available::New spoiler files will be uploaded")