Skip to content

Commit

Permalink
Merge pull request #15 from simondeziel/wait-for-snap-changes-to-be-done
Browse files Browse the repository at this point in the history
action: wait for any snap changes to be done before setting config
  • Loading branch information
tomponline committed May 31, 2024
2 parents 7be523c + fbf896a commit 0104c9b
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 0104c9b

Please sign in to comment.