diff --git a/.gitea/workflows/branch-sonarscan-pr-merge.yml b/.gitea/workflows/branch-sonarscan-pr-merge.yml index 6005b41b..c946928d 100644 --- a/.gitea/workflows/branch-sonarscan-pr-merge.yml +++ b/.gitea/workflows/branch-sonarscan-pr-merge.yml @@ -26,17 +26,17 @@ jobs: run: | echo "Checking for existing PR..." 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: ${{ secrets.BOT_GITEA_TOKEN }}' -s | jq '{index: .number, state: .state}') - echo "pr_http_status=$pr_http_status" >> $GITHUB_OUTPUT + echo "pr_status=$pr_status" >> $GITHUB_OUTPUT - name: var test run: | - echo "pr_http_status: ${{ steps.check-pr.outputs.pr_http_status }}" + 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_http_status }}' + input: '${{ steps.check-pr.outputs.pr_status }}' action: "get" key: "state" # Step 2: Create PR if none exists