Reverting from gitea-pr-action to curl.

This commit is contained in:
2024-12-17 13:26:38 -05:00
parent 8fc6f9a4fb
commit 8d8e3f3584
+14 -4
View File
@@ -34,10 +34,20 @@ jobs:
- name: Create PR in Gitea - name: Create PR in Gitea
if: ${{ steps.check-pr.outputs.pr_status.state }} == 'closed' if: ${{ steps.check-pr.outputs.pr_status.state }} == 'closed'
id: create-pr id: create-pr
uses: arifer612/Gitea-PR-action@v1.2.0 run: |
with: echo "Creating PR..."
url: ${{ vars.RINOA_GITEA_URL }} curl ${{ vars.RINOA_GITEA_URL }}/api/v1/repos/${{ github.repository }}/pulls \
token: ${{ secrets.BOT_GITEA_TOKEN }} -X 'POST' \
-H 'Accept: application/json' \
-H 'Authorization: token ${{ secrets.BOT_GITEA_TOKEN }}' \
-H 'Content-Type: application/json' \
-d '{
"title": "PR: ${{ github.ref_name }} -> main",
"body": "This is an automated PR created by Gitea Actions.",
"base": "main",
"head": "${{ github.ref_name }}"
}' | jq '{index: .number}' > pr_created.json
echo "pr_created=$(jq -c . pr_created.json)" >> "$GITHUB_OUTPUT"
# # Job 2: Run SonarQube Analysis # # Job 2: Run SonarQube Analysis
# sonarqube-analysis: # sonarqube-analysis: