From f02337b83b0d8099fa310e5892566feace1a104f Mon Sep 17 00:00:00 2001 From: John Guan Date: Wed, 1 Dec 2021 21:09:18 +0800 Subject: [PATCH] Update demo.yml --- .github/workflows/demo.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/demo.yml b/.github/workflows/demo.yml index bb20db8..ee7b160 100644 --- a/.github/workflows/demo.yml +++ b/.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: |