Skip to content

Commit

Permalink
action: wait for any snap changes to be done before setting config
Browse files Browse the repository at this point in the history
Fixes: #14

Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel committed May 30, 2024
1 parent 7be523c commit fbf896a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ runs:
- name: Set up permissions for socket
shell: bash
run: |
while [ -n "$(snap changes lxd 2>/dev/null | awk '/^[0-9]+/ {if ($2 != "Done") print $2 }')" ]; do
echo "Waiting for snap changes on LXD to finish"
sleep 1
done
sudo snap set lxd daemon.group=${{ inputs.group }}
- name: Initialise LXD
Expand Down

0 comments on commit fbf896a

Please sign in to comment.