From de26a79a4c8c9f2cf75a772013e7f97053a2fb58 Mon Sep 17 00:00:00 2001 From: Timothy Stewart Date: Fri, 26 Jan 2024 23:09:30 -0600 Subject: [PATCH] fix(ci): fixes for ephemeral nodes --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 94fef42..f613f89 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,7 +30,7 @@ jobs: - name: Remove all local Vagrant boxes if: always() # do this even if a step before has failed - run: vagrant box list | cut -f 1 -d ' ' | xargs -L 1 vagrant box remove -f + run: if vagrant box list &> /dev/null; then vagrant box list | cut -f 1 -d ' ' | xargs -L 1 vagrant box remove -f; echo "All Vagrant boxes removed."; else echo "No Vagrant boxes found."; fi - name: Remove all Virtualbox VMs if: always() # do this even if a step before has failed @@ -96,7 +96,7 @@ jobs: - name: Remove all local Vagrant boxes if: always() # do this even if a step before has failed - run: vagrant box list | cut -f 1 -d ' ' | xargs -L 1 vagrant box remove -f + run: if vagrant box list &> /dev/null; then vagrant box list | cut -f 1 -d ' ' | xargs -L 1 vagrant box remove -f; echo "All Vagrant boxes removed."; else echo "No Vagrant boxes found."; fi - name: Remove all Virtualbox VMs if: always() # do this even if a step before has failed