diff --git a/.github/workflows/vagrant-up.yml b/.github/workflows/vagrant-up.yml index aba37b4..b8be999 100644 --- a/.github/workflows/vagrant-up.yml +++ b/.github/workflows/vagrant-up.yml @@ -28,11 +28,22 @@ jobs: group: Default labels: [self-hosted, Linux, X64] steps: - - name: clean up old VMs + - name: clean up old VirtualBox VMs run: | vboxmanage list vms | \ grep -o -P '(?<={).*(?=})' | \ while read line ; do vboxmanage unregistervm $line --delete ; done + - name: clean up old Vagrant artifacts + run: | + vagrant destroy emoflon || true + vagrant box remove gusztavvargadr/xubuntu-desktop-2204-lts || true + # https://stackoverflow.com/a/71346341 + - name: clean up old GitHub Actions runner build folder + run: | + ls -la ./ + rm -rf ./* || true + rm -rf ./.??* || true + ls -la ./ - uses: actions/checkout@v4 - name: show Vagrant version run: vagrant --version @@ -42,7 +53,7 @@ jobs: echo "=> Vagrant run finished." env: GITHUB_TOKEN: ${{ github.token }} - - name: export virtualbox VM + - name: export VirtualBox VM run: | vagrant halt vboxmanage export emoflon -o emoflon.ovf