From 83b296be27395926032f8b6daf9fe06861ea42fa Mon Sep 17 00:00:00 2001 From: MateuszMudita <165778944+MateuszMudita@users.noreply.github.com> Date: Wed, 18 Dec 2024 10:32:08 +0100 Subject: [PATCH] [CP-3344] Fixed GitHub Actions (#2238) --- .github/workflows/e2e-feature-branch.yml | 3 ++- .github/workflows/e2e-mock-feature-branch.yml | 4 +++- .github/workflows/nexus-feature-branch.yml | 7 ++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/e2e-feature-branch.yml b/.github/workflows/e2e-feature-branch.yml index 86c4bcae07..9a70327c5d 100644 --- a/.github/workflows/e2e-feature-branch.yml +++ b/.github/workflows/e2e-feature-branch.yml @@ -5,6 +5,7 @@ on: types: - opened - synchronize + - ready_for_review - reopened workflow_dispatch: jobs: @@ -13,7 +14,7 @@ jobs: strategy: matrix: os: [Windows, Linux] - if: startsWith(github.ref, 'refs/heads/CP-') + if: startsWith(github.head_ref || github.ref, 'CP-') environment: development steps: - name: Checkout code diff --git a/.github/workflows/e2e-mock-feature-branch.yml b/.github/workflows/e2e-mock-feature-branch.yml index a0e085168e..d77287ab79 100644 --- a/.github/workflows/e2e-mock-feature-branch.yml +++ b/.github/workflows/e2e-mock-feature-branch.yml @@ -5,14 +5,16 @@ on: types: - opened - synchronize + - ready_for_review - reopened + workflow_dispatch: jobs: e2e: runs-on: ${{ matrix.os }} strategy: matrix: os: [Windows, Linux] - if: startsWith(github.ref, 'refs/heads/CP-') + if: startsWith(github.head_ref || github.ref, 'CP-') environment: development steps: - name: Checkout code diff --git a/.github/workflows/nexus-feature-branch.yml b/.github/workflows/nexus-feature-branch.yml index 4dcdee20a7..128c00273b 100644 --- a/.github/workflows/nexus-feature-branch.yml +++ b/.github/workflows/nexus-feature-branch.yml @@ -5,6 +5,7 @@ on: types: - opened - synchronize + - ready_for_review - reopened workflow_dispatch: jobs: @@ -13,7 +14,7 @@ jobs: strategy: matrix: os: [Linux, Windows, macOS] - if: startsWith(github.ref, 'refs/heads/CP-') + if: startsWith(github.head_ref || github.ref, 'CP-') environment: development steps: - name: Checkout code @@ -135,10 +136,6 @@ jobs: } | Set-Content -Path 'apps/mudita-center/package.json' - name: Setup depedencies run: npm run setup -# - name: Copy electron-builder environment file for Windows -# if: matrix.os == 'Windows' -# run: | -# copy C:\actions-runner\envs\electron-builder.env apps/mudita-center/electron-builder.env - name: Copy electron-builder environment file for Linux/Mac if: matrix.os != 'Windows' run: |