More debug but without external action

This commit is contained in:
pazpi 2026-01-08 14:04:37 +01:00
parent ad36335f71
commit 5c06517f13

View file

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