From af5b2f7913480520c4d6702356a730568f44e606 Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Fri, 21 Mar 2025 22:30:37 +0100 Subject: [PATCH] ci/cd: skip e2e tests if the PR comes from `i18n_crowdin` --- .github/workflows/e2e-tests.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 428d1667..c3c9ed39 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -6,17 +6,16 @@ on: - "docs/**" - "**.md" - ".github/**" - - "frontend/messages/**" pull_request: branches: [main] paths-ignore: - "docs/**" - "**.md" - ".github/**" - - "frontend/messages/**" jobs: build: + if: github.event.pull_request.head.ref != 'i18n_crowdin' timeout-minutes: 20 runs-on: ubuntu-latest steps: @@ -36,6 +35,7 @@ jobs: path: /tmp/docker-image.tar test-sqlite: + if: github.event.pull_request.head.ref != 'i18n_crowdin' runs-on: ubuntu-latest needs: build steps: @@ -82,6 +82,7 @@ jobs: retention-days: 15 test-postgres: + if: github.event.pull_request.head.ref != 'i18n_crowdin' runs-on: ubuntu-latest needs: build steps: @@ -147,7 +148,7 @@ jobs: run: npx playwright test - uses: actions/upload-artifact@v4 - if: always() + if: always() && github.event.pull_request.head.ref != 'i18n_crowdin' with: name: playwright-report-postgres path: frontend/tests/.report