Skip to content

Commit adf1256

Browse files
committed
properly extract ignore deployments
1 parent 24eeb48 commit adf1256

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

entrypoint.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,7 @@
2424
DRY_RUN = str(sys.argv[1]).lower() in ("1", "true", "on")
2525
GITHUB_TOKEN = sys.argv[2]
2626
OKTETO_DOMAIN = sys.argv[3]
27-
IGNORE_DEPLOYMENTS = sys.argv[4]
28-
29-
print(repr(IGNORE_DEPLOYMENTS))
30-
# sys.exit(1)
31-
32-
IGNORE_DEPLOYMENTS = list(map(str.strip, "Staging, Production".split(",")))
33-
27+
IGNORE_DEPLOYMENTS = list(filter(None, map(str.strip, sys.argv[4].replace("\n", ",").split(","))))
3428

3529
# Fetch vars from default environment variables
3630
GITHUB_API_URL = os.environ.get("GITHUB_API_URL", "https://api.github.com")

0 commit comments

Comments
 (0)