diff --git a/.github/workflows/create_destroy_test_vm.yaml b/.github/workflows/create_destroy_test_vm.yaml index e8dbf757..61988453 100644 --- a/.github/workflows/create_destroy_test_vm.yaml +++ b/.github/workflows/create_destroy_test_vm.yaml @@ -286,12 +286,14 @@ jobs: ################################################################################## destroy_test_vm: if: | - github.event.action == 'closed' || - (github.event.action == 'unlabeled' && github.event.label.name == 'create-test-vm') || ( - github.event.action == 'reopened' || - github.event.action == 'synchronize' - ) && contains(github.event.pull_request.labels.*.name, 'create-test-vm') != true + github.event.action == 'closed' && + contains(github.event.pull_request.labels.*.name, 'create-test-vm') + ) || + ( + github.event.action == 'unlabeled' && + github.event.label.name == 'create-test-vm' + ) runs-on: ubuntu-latest steps: - name: Get pr number and droplet ip