This commit is contained in:
parent
a3e008c317
commit
1220a37b60
@ -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user