log differently if no containers were deployed
All checks were successful
Deploy Containers / Prepare (push) Successful in 3s
All checks were successful
Deploy Containers / Prepare (push) Successful in 3s
This commit is contained in:
@@ -53,6 +53,7 @@ def main():
|
|||||||
diff = git_diff()
|
diff = git_diff()
|
||||||
|
|
||||||
success = True
|
success = True
|
||||||
|
deployed = 0
|
||||||
for file in diff:
|
for file in diff:
|
||||||
if "tasks" in file:
|
if "tasks" in file:
|
||||||
task_name = file.split("/")[1].split(".")[0] + "_deploy"
|
task_name = file.split("/")[1].split(".")[0] + "_deploy"
|
||||||
@@ -61,12 +62,16 @@ def main():
|
|||||||
if not state:
|
if not state:
|
||||||
success = False
|
success = False
|
||||||
break
|
break
|
||||||
|
else:
|
||||||
|
deployed += 1
|
||||||
|
|
||||||
if success:
|
if success and deployed > 0:
|
||||||
print("\n---------------------")
|
print("\n---------------------")
|
||||||
print(" Deployment succeeded!")
|
print(" Deployment succeeded!")
|
||||||
print(f" Tasks: {", ".join(diff)}")
|
print(f" Tasks: {", ".join(diff)}")
|
||||||
print("---------------------\n")
|
print("---------------------\n")
|
||||||
|
else:
|
||||||
|
print("Successful, no containers required deployment")
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
Reference in New Issue
Block a user