Logic testing for PR creation.

This commit is contained in:
2024-12-17 11:55:47 -05:00
parent 78a94b3904
commit 7fbbeefb8b
@@ -25,12 +25,11 @@ jobs:
id: check-pr
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_status=$pr_status" >> $GITHUB_OUTPUT
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}')
- name: var test
run: |
echo "pr_status: ${{ steps.check-pr.outputs.pr_status }}"
# - name: var test
# run: |
# echo "pr_status: ${{ steps.check-pr.outputs.pr_status }}"
- name: Get PR status
id: get-pr-status