From ea91d7409d8d41b5b1c70c386f7f3471dce5f3d6 Mon Sep 17 00:00:00 2001 From: "Trez.One" Date: Tue, 24 Dec 2024 19:31:05 -0500 Subject: [PATCH] Fixing output statement. --- .gitea/workflows/deployment.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deployment.yml b/.gitea/workflows/deployment.yml index bd63a762..5602f1d8 100644 --- a/.gitea/workflows/deployment.yml +++ b/.gitea/workflows/deployment.yml @@ -22,11 +22,12 @@ jobs: echo "Listing PRs..." tea login add --name gitea-rinoa --url "${{ vars.RINOA_GITEA_URL }}" --user gitea-sonarqube-bot --password "${{ secrets.BOT_GITEA_PASSWORD }}" --token "${{ secrets.BOT_GITEA_TOKEN }}" tea pr ls --repo ${{ github.repository }} --state open --output csv | egrep 'open' + echo "list_exit=$?" >> "$GITHUB_OUTPUT" if [ $? -eq 0 ]; then echo "PR already exists. Skipping PR creation." pr_index=$(tea pr ls --repo ${{ github.repository }} --state open --output csv | egrep ${{ gitea.ref_name }} | awk -F, '{print $1}' | sed -e 's|"||g') echo "pr_index=$(echo ${pr_index})" >> "$GITHUB_OUTPUT" - echo "list_exit=$?" >> "$GITHUB_OUTPUT" + - name: Create PR if: steps.list-prs.outputs.list_exit != 0