From 5edeebd6e37eedec7320a779720b8b2d8ebd2975 Mon Sep 17 00:00:00 2001 From: "Trez.One" Date: Tue, 17 Dec 2024 12:05:29 -0500 Subject: [PATCH] Logic testing for PR creation. --- .gitea/workflows/branch-sonarscan-pr-merge.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/branch-sonarscan-pr-merge.yml b/.gitea/workflows/branch-sonarscan-pr-merge.yml index 9552c215..262e9704 100644 --- a/.gitea/workflows/branch-sonarscan-pr-merge.yml +++ b/.gitea/workflows/branch-sonarscan-pr-merge.yml @@ -28,11 +28,15 @@ jobs: pr_status=$(curl ${{ vars.RINOA_GITEA_URL }}/api/v1/repos/${{ github.repository }}/pulls/main/${{ github.ref_name }} -X 'GET' -H 'Accept: application/json' -H 'Authorization: token ${{ secrets.BOT_GITEA_TOKEN }}' -s | jq '{index: .number, state: .state}') echo "pr_status=$pr_status" >> $GITHUB_OUTPUT + - name: var test + run: | + echo "pr_status: ${{ steps.check-pr.outputs.pr_status }}" + - name: Get PR status id: get-pr-status uses: yakubique/json-utils@v1.8 with: - input: ${{ steps.check-pr.outputs.pr_status }} + input: '${{ toJSON(steps.check-pr.outputs.pr_status) }}' action: "get" key: "state" # Step 2: Create PR if none exists