From f9ab8f95925e2e02fca0902bdf2baa838d164be4 Mon Sep 17 00:00:00 2001 From: JuanfeSanahuja Date: Wed, 8 Jan 2025 09:46:46 +0100 Subject: [PATCH] cicd: added if github.event.review.state approved #TASK-7301 --- .github/workflows/pull-request-approved.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pull-request-approved.yml b/.github/workflows/pull-request-approved.yml index ba378d3a..6363b420 100644 --- a/.github/workflows/pull-request-approved.yml +++ b/.github/workflows/pull-request-approved.yml @@ -7,6 +7,7 @@ on: jobs: calculate-xetabase-branch: + if: github.event.review.state == 'approved' name: Calculate Xetabase branch runs-on: ubuntu-22.04 outputs: @@ -31,6 +32,7 @@ jobs: ZETTA_REPO_ACCESS_TOKEN: ${{ secrets.ZETTA_REPO_ACCESS_TOKEN }} test: + if: github.event.review.state == 'approved' name: "Run all tests before merging" needs: calculate-xetabase-branch uses: opencb/java-common-libs/.github/workflows/test-xetabase-workflow.yml@develop