From b7bccc0bbc2a34c813c48f40dd16dc4fbf2944db Mon Sep 17 00:00:00 2001 From: Sokratis Vidros Date: Thu, 9 May 2024 12:52:02 +0300 Subject: [PATCH] fix(actions): Disable deployment only if e2e fails on next or prod --- .github/workflows/scheduled_e2e.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/scheduled_e2e.yml b/.github/workflows/scheduled_e2e.yml index 6d63343eb50..880cb091046 100644 --- a/.github/workflows/scheduled_e2e.yml +++ b/.github/workflows/scheduled_e2e.yml @@ -12,9 +12,9 @@ permissions: actions: write env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} OWNER: ${{ github.repository_owner }} REPO: ${{ github.event.repository.name }} - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} jobs: test_web: @@ -49,7 +49,8 @@ jobs: release_decision: name: Release Decision - if: always() + # TODO: Remove the conditional for next when we fully switch to main/prod branching model + if: github.ref_name == 'next' || github.ref_name == 'prod' || github.ref_name == 'main' runs-on: ubuntu-latest needs: - test_widget