fix: use gitea api
All checks were successful
Check / check (push) Successful in 52s

This commit is contained in:
trev 2025-05-14 08:08:13 -04:00
parent a3e008c317
commit 1220a37b60

View File

@ -28,14 +28,18 @@ jobs:
run: | run: |
git config user.name "github-actions[bot]" git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git checkout -B create-pull-request/patch
- name: Update - name: Update
run: nix run .#update run: nix run .#update
- name: Create Gitea PR - name: Create Gitea PR
uses: infinilbas/gitea-pr@v0 env:
with: URL: ${{ vars.URL }}
url: ${{ vars.URL }} PAT: ${{ secrets.PAT }}
token: ${{ secrets.PAT }} run: |
title: "update" REPO_OWNER_SLASH_NAME="${{ gitea.repository }}"
body: "This PR was created automatically" curl -s -X POST -H "Authorization: token $PAT" \
-H "Content-Type: application/json" \
-d '{"title":"update","body":"automatic update pr","head":"create-pull-request/patch","base":"main"}' \
"$URL/api/v1/repos/$REPO_OWNER_SLASH_NAME/pulls"