From 7e2a5d553c5194a01c229e97d02c2c968dcf7bc3 Mon Sep 17 00:00:00 2001 From: John Guan Date: Wed, 1 Dec 2021 21:14:34 +0800 Subject: [PATCH] Update demo.yml --- .github/workflows/demo.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/demo.yml b/.github/workflows/demo.yml index ee7b160..3196258 100644 --- a/.github/workflows/demo.yml +++ b/.github/workflows/demo.yml @@ -29,7 +29,7 @@ jobs: with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - aws-region: us-east-2 + aws-region: us-west-2 - name: Get old instance and snapshot name, create new instance name run: | @@ -37,12 +37,6 @@ jobs: 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: | aws lightsail create-instances-from-snapshot \