From cc8867573b40ebec6c27c979cb2f37aa7a41d71d Mon Sep 17 00:00:00 2001 From: Rodrigo Almeida Date: Wed, 4 May 2022 16:40:09 +0200 Subject: [PATCH] Don't run preview at workflow dispathc --- .github/workflows/test_and_deploy.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index 1f716a4e..a5785f8f 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -42,7 +42,7 @@ jobs: name: Preview [TEST] needs: [tests] runs-on: ubuntu-latest - if: github.ref != 'refs/heads/main' + if: github.ref != 'refs/heads/main' && github.event_name != 'workflow_dispatch' steps: - uses: actions/checkout@v2 - uses: actions/setup-python@v2 @@ -75,7 +75,6 @@ jobs: deploy-test: name: Deploy [TEST] - needs: [preview-test] runs-on: ubuntu-latest environment: test if: github.event_name == 'workflow_dispatch'