瀏覽代碼

Update demo.yml (#1174)

Add demo reset error handle

Signed-off-by: raller1028 <57336867+raller1028@users.noreply.github.com>
raller1028 2 年之前
父節點
當前提交
23ce3487e1
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      .github/workflows/demo.yml

+ 4 - 0
.github/workflows/demo.yml

@@ -75,5 +75,9 @@ jobs:
         run: | 
           aws lightsail delete-instance \
             --instance-name ${{ env.OLD_INSTANCE_NAME }}
+      - name: Demo Reset Error Handling
+        if: ${{ failure() }}
+        run: |
+          curl -X POST -H "Content-Type: application/json" -d '{"msg_type":"text","content":{"text":"Demo Reset Error"}}' ${{ secrets.SSH_ROBOT_URL }}