More debug but without external action
This commit is contained in:
parent
ad36335f71
commit
5c06517f13
1 changed files with 15 additions and 11 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue