Logic testing for PR creation.
This commit is contained in:
@@ -25,12 +25,11 @@ jobs:
|
|||||||
id: check-pr
|
id: check-pr
|
||||||
run: |
|
run: |
|
||||||
echo "Checking for existing PR..."
|
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}')
|
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
|
|
||||||
|
|
||||||
- name: var test
|
# - name: var test
|
||||||
run: |
|
# run: |
|
||||||
echo "pr_status: ${{ steps.check-pr.outputs.pr_status }}"
|
# echo "pr_status: ${{ steps.check-pr.outputs.pr_status }}"
|
||||||
|
|
||||||
- name: Get PR status
|
- name: Get PR status
|
||||||
id: get-pr-status
|
id: get-pr-status
|
||||||
|
|||||||
Reference in New Issue
Block a user