Logic testing for PR creation.
This commit is contained in:
@@ -25,8 +25,9 @@ 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: token ${{ 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: token ${{ secrets.BOT_GITEA_TOKEN }}' -s | jq '{index: .number, state: .state}' > pr_status.json
|
||||
cat pr_status.json
|
||||
echo "pr_status=$(cat pr_status.json)" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: var test
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user