git: Retry snap installation a few times in case of network issues

This commit is contained in:
WerWolv
2025-08-10 00:20:04 +02:00
parent 66e407549e
commit 902c8dcd8d

View File

@@ -1096,7 +1096,14 @@ jobs:
- name: ⬇️ Install setup dependencies
run: |
sudo apt update && sudo apt install -y git curl snapd ccache
sudo snap install snapcraft --classic
for i in $(seq 1 5); do
if sudo snap install snapcraft --classic; then
break;
fi
echo "Retrying snap install..."
sleep 10
done
- name: 🧰 Checkout
uses: actions/checkout@v4