|
@@ -16,7 +16,7 @@ def webhook():
|
|
|
if branch.endswith('main'): # 检查是否是 main 分支
|
|
|
try:
|
|
|
# 执行部署脚本
|
|
|
- deploy_script = "/home/user/go-msa-auth/deploy.sh"
|
|
|
+ deploy_script = "/Users/youruser/go-msa-auth/deploy.sh"
|
|
|
result = subprocess.run([deploy_script], shell=True, capture_output=True, text=True)
|
|
|
return f"Deployment triggered:\n{result.stdout}", 200
|
|
|
except Exception as e:
|