diff --git a/.forgejo/workflows/auto-update-pr.yaml b/.forgejo/workflows/auto-update-pr.yaml index 5896951..203f85e 100644 --- a/.forgejo/workflows/auto-update-pr.yaml +++ b/.forgejo/workflows/auto-update-pr.yaml @@ -54,15 +54,19 @@ jobs: echo "Repository: ${{ forgejo.repository }}" echo "Branch: ${{ steps.commit.outputs.branch_name }}" - - name: Create Pull Request + - name: Test API endpoint if: steps.changes.outputs.changed == 'true' - uses: https://github.com/timherrm/forgejo-CreatePR@main - with: - api_url: ${{ forgejo.server_url }}/api/v1 - token: ${{ secrets.FORGEJO_TOKEN }} - repository: ${{ forgejo.repository }} - head: ${{ steps.commit.outputs.branch_name }} - base: master - title: "chore: weekly flake update" - body: "Automated flake update from CI.\n\nThis PR updates all flake inputs.\n\n**Note:** Build verification will run automatically on this PR." - assignees: "pazpi" + env: + FORGEJO_TOKEN: ${{ secrets.FORGEJO_TOKEN }} + run: | + echo "Testing API endpoint..." + curl -v -X POST \ + -H "Authorization: token $FORGEJO_TOKEN" \ + -H "Content-Type: application/json" \ + -d '{ + "title": "chore: weekly flake update", + "body": "Automated flake update from CI", + "head": "${{ steps.commit.outputs.branch_name }}", + "base": "master" + }' \ + "${{ forgejo.api_url }}/repos/${{ forgejo.repository }}/pulls"