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 "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"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue