我是Python /CD作业的新手,但我正在尝试设置一个GitLab脚本,该脚本在推送到GitLab时会触发CI/CD作业来运行它,并调用一个内部函数再次推送到GitLab,前提是满足一定的条件。因此,例如,假设我有以下内容:
def hasFileInDirectory():
# checks if the current directory has at least 1 other file in it
if (1 or more files exist):
print 'Great! You have enough files!';