From e1bbb998df7767986d1cf43e8597d3734e76ee85 Mon Sep 17 00:00:00 2001 From: link Date: Sun, 25 Jun 2023 16:58:29 +0800 Subject: [PATCH] Update demo.yml (#1210) Signed-off-by: link --- .github/workflows/demo.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/demo.yml b/.github/workflows/demo.yml index a440519..69266c4 100644 --- a/.github/workflows/demo.yml +++ b/.github/workflows/demo.yml @@ -34,7 +34,7 @@ jobs: - name: Get old instance and snapshot name, create new instance name run: | echo "OLD_INSTANCE_SNAPSHOT_NAME=$(aws lightsail get-instance-snapshots | grep '"name": "updateto_to_0.4.4-1684926517' | 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 "OLD_INSTANCE_NAME=$(aws lightsail get-instances | grep '"name": "CasaOS-Demo-[0-9]' | head -n 1 | 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: Create instances from snapshot