From 4f4ce7eb7146462a2288cd8db470485e95219c19 Mon Sep 17 00:00:00 2001 From: JuanfeSanahuja Date: Mon, 11 Nov 2024 10:14:49 +0100 Subject: [PATCH] Push echo to debug pull-request-approve #TASK-6765 --- .github/workflows/pull-request-approved.yml | 1 + .github/workflows/scripts/get-xetabase-branch.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pull-request-approved.yml b/.github/workflows/pull-request-approved.yml index eb0e45fadc..0c148d9ac1 100644 --- a/.github/workflows/pull-request-approved.yml +++ b/.github/workflows/pull-request-approved.yml @@ -26,6 +26,7 @@ jobs: echo "github.event.pull_request.head.ref: ${{ github.event.pull_request.head.ref }}" xetabase_branch=$(./.github/workflows/scripts/get-xetabase-branch.sh ${{ github.event.pull_request.base.ref }}) echo "__Xetabase ref:__ \"${xetabase_branch}\"" | tee -a ${GITHUB_STEP_SUMMARY} + echo "xetabase_branch: ${xetabase_branch}" echo "xetabase_branch=${xetabase_branch}" >> $GITHUB_OUTPUT env: ZETTA_REPO_ACCESS_TOKEN: ${{ secrets.ZETTA_REPO_ACCESS_TOKEN }} diff --git a/.github/workflows/scripts/get-xetabase-branch.sh b/.github/workflows/scripts/get-xetabase-branch.sh index 90ab2c7574..40ad247ecf 100644 --- a/.github/workflows/scripts/get-xetabase-branch.sh +++ b/.github/workflows/scripts/get-xetabase-branch.sh @@ -8,7 +8,7 @@ get_xetabase_branch() { # If the branch begins with 'TASK' and exists in the opencga-enterprise repository, I return it if [[ $input_branch == TASK* ]]; then if [ "$(git ls-remote "https://$ZETTA_REPO_ACCESS_TOKEN@github.com/zetta-genomics/opencga-enterprise.git" "$input_branch" )" ] ; then - echo $input_branch; + echo "$input_branch"; return 0; fi fi