Testing PR logic #3 (added variable for baseApiUrl.
This commit is contained in:
@@ -17,12 +17,12 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Verify URL
|
- name: Verify URL
|
||||||
run: |
|
run: |
|
||||||
echo "Verifying URL: ${{ secrets.RINOA_GITEA_SERVER }}/repos/${{ github.repository }}/pulls"
|
echo "Verifying URL: ${{ vars.RINOA_GITEA_API }}/repos/${{ github.repository }}/pulls"
|
||||||
- name: Check if Pull Request Exists
|
- name: Check if Pull Request Exists
|
||||||
id: check-pr
|
id: check-pr
|
||||||
uses: prasiman/gocurl@v1
|
uses: prasiman/gocurl@v1
|
||||||
with:
|
with:
|
||||||
url: ${{ secrets.RINOA_GITEA_SERVER }}/repos/${{ github.repository }}/pulls
|
url: ${{ vars.RINOA_GITEA_API }}/repos/${{ github.repository }}/pulls
|
||||||
params: '{ "state": "open" }'
|
params: '{ "state": "open" }'
|
||||||
method: "GET"
|
method: "GET"
|
||||||
headers: '{ "Authorization": "token ${{ secrets.GITEA_API_TOKEN }}" }'
|
headers: '{ "Authorization": "token ${{ secrets.GITEA_API_TOKEN }}" }'
|
||||||
|
|||||||
Reference in New Issue
Block a user