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 "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"