Update demo.yml
This commit is contained in:
parent
f66b67b0c9
commit
f02337b83b
1 changed files with 6 additions and 0 deletions
6
.github/workflows/demo.yml
vendored
6
.github/workflows/demo.yml
vendored
|
@ -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: |
|
||||
|
|
Loading…
Add table
Reference in a new issue