diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4bf2609..af710a7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -49,6 +49,7 @@ jobs: e2e-chrome-tests: timeout-minutes: 15 runs-on: ubuntu-latest + if: "(github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'manual') || github.ref == 'refs/heads/main'" container: image: cypress/browsers:node-18.16.0-chrome-114.0.5735.133-1-ff-114.0.2-edge-114.0.1823.51-1 options: --user 1001 @@ -99,6 +100,7 @@ jobs: e2e-chrome-mobile-tests: timeout-minutes: 15 runs-on: ubuntu-latest + if: "(github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'manual') || github.ref == 'refs/heads/main'" container: image: cypress/browsers:node-18.16.0-chrome-114.0.5735.133-1-ff-114.0.2-edge-114.0.1823.51-1 options: --user 1001