瀏覽代碼

Update demo.yml

John Guan 3 年之前
父節點
當前提交
f02337b83b
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      .github/workflows/demo.yml

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

@@ -36,6 +36,12 @@ jobs:
           echo "OLD_INSTANCE_SNAPSHOT_NAME=$(aws lightsail get-instance-snapshots | grep '"name": "CasaOS-Demo-Snapshot-[0-9]' | sed 's/ //g' | sed 's/"//g' | sed 's/,//g' | sed 's/name://g')" >> $GITHUB_ENV
           echo "OLD_INSTANCE_NAME=$(aws lightsail get-instances | grep '"name": "CasaOS-Demo-[0-9]' | sed 's/ //g' | sed 's/"//g' | sed 's/,//g' | sed 's/name://g')" >> $GITHUB_ENV
           echo "NEW_INSTANCE_NAME=CasaOS-Demo-$(date +%s)" >> $GITHUB_ENV
+          
+      - name: Check GitHub envs
+        run: |
+          echo "OLD_INSTANCE_SNAPSHOT_NAME=${{ env.OLD_INSTANCE_SNAPSHOT_NAME }}"
+          echo "OLD_INSTANCE_NAME=${{ env.OLD_INSTANCE_NAME }}"
+          echo "NEW_INSTANCE_NAME=${{ env.NEW_INSTANCE_NAME }}"
       
       - name: Create instances from snapshot
         run: |