1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 20:35:55 +00:00

Attach event monitor after addon restore (#3893)

* Attach event monitor after addon restore

* Load after install and listener removal
This commit is contained in:
Mike Degatano
2022-09-23 15:11:36 -04:00
committed by GitHub
parent 951efd6b29
commit 30df8ce5c7
4 changed files with 63 additions and 8 deletions

View File

@@ -87,7 +87,7 @@ jobs:
uses: actions/checkout@v3.0.2
with:
fetch-depth: 0
- name: Write env-file
if: needs.init.outputs.requirements == 'true'
run: |
@@ -297,6 +297,12 @@ jobs:
exit 1
fi
# Make sure its state is started
test="$(docker exec hassio_cli ha addons info core_ssh --no-progress --raw-json | jq -r '.data.state')"
if [ "$test" != "started" ]; then
exit 1
fi
- name: Check the Supervisor code sign
if: needs.init.outputs.publish == 'true'
run: |
@@ -369,6 +375,12 @@ jobs:
exit 1
fi
# Make sure its state is started
test="$(docker exec hassio_cli ha addons info core_ssh --no-progress --raw-json | jq -r '.data.state')"
if [ "$test" != "started" ]; then
exit 1
fi
- name: Restore SSL directory from backup
run: |
test=$(docker exec hassio_cli ha backups restore ${{ steps.backup.outputs.slug }} --folders ssl --no-progress --raw-json | jq -r '.result')