소스 검색

webhook path change

wuzj 2 달 전
부모
커밋
e913d6685b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      webhook/webhook.py

+ 1 - 1
webhook/webhook.py

@@ -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: