Browse Source

Update demo.yml

John Guan 3 năm trước cách đây
mục cha
commit
f02337b83b
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  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: |