gocurl version ref fix.

This commit is contained in:
2024-12-12 18:51:48 -05:00
parent f7cf25e66a
commit 710b150f6f
@@ -17,7 +17,7 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Check if Pull Request Exists - name: Check if Pull Request Exists
id: check-pr id: check-pr
uses: prasiman/gocurl@v1.2.0 uses: prasiman/gocurl@v1
with: with:
url: ${{ secrets.RINOA_GITEA_SERVER }}/repos/${{ github.repository_owner }}/pulls?state=open&head=${{ github.repository_owner }}:${{ github.ref_name }} url: ${{ secrets.RINOA_GITEA_SERVER }}/repos/${{ github.repository_owner }}/pulls?state=open&head=${{ github.repository_owner }}:${{ github.ref_name }}
method: GET method: GET
@@ -52,10 +52,10 @@ jobs:
- name: Merge Pull Request - name: Merge Pull Request
if: steps.docker-lint.outcome == 'success' if: steps.docker-lint.outcome == 'success'
uses: prasiman/gocurl@v1.2.0 uses: prasiman/gocurl@v1
with: with:
url: ${{ secrets.GITEA_API_URL }}/repos/${{ github.repository_owner }}/${{ github.event.repository.name }}/pulls/${{ github.event.pull_request.number }}/merge url: ${{ secrets.GITEA_API_URL }}/repos/${{ github.repository_owner }}/${{ github.event.repository.name }}/pulls/${{ github.event.pull_request.number }}/merge
method: POST method: "POST"
headers: | headers: |
Authorization: token ${{ secrets.BOT_GITEA_TOKEN }} Authorization: token ${{ secrets.BOT_GITEA_TOKEN }}
Content-Type: application/json Content-Type: application/json