use -X POST
This commit is contained in:
parent
99765e19ba
commit
6864c62dc4
2 changed files with 2 additions and 2 deletions
|
@ -55,7 +55,7 @@ pipeline:
|
||||||
image: nixery.dev/shell/curl
|
image: nixery.dev/shell/curl
|
||||||
commands:
|
commands:
|
||||||
- |
|
- |
|
||||||
echo '{ "assignee": "darkkirb", "base": "main", "head": "update-flake-lock", "title": "Update lockfile", "body": "" }' | curl -X PUT -H "Authorization: token $GITEA_TOKEN" -H "Content-Type: application/json" --data-binary @- 'https://git.chir.rs/api/v1/repos/darkkirb/nix-packages/pulls'
|
echo '{ "assignee": "darkkirb", "base": "main", "head": "update-flake-lock", "title": "Update lockfile", "body": "" }' | curl -X POST -H "Authorization: token $GITEA_TOKEN" -H "Content-Type: application/json" --data-binary @- 'https://git.chir.rs/api/v1/repos/darkkirb/nix-packages/pulls'
|
||||||
secrets:
|
secrets:
|
||||||
- gitea_token
|
- gitea_token
|
||||||
when:
|
when:
|
||||||
|
|
|
@ -59,7 +59,7 @@ pipeline:
|
||||||
image: nixery.dev/shell/curl
|
image: nixery.dev/shell/curl
|
||||||
commands:
|
commands:
|
||||||
- |
|
- |
|
||||||
echo '{ "assignee": "darkkirb", "base": "main", "head": "update-${PACKAGE}", "title": "Update ${PACKAGE}", "body": "" }' | curl -X PUT -H "Authorization: token $GITEA_TOKEN" -H "Content-Type: application/json" --data-binary @- 'https://git.chir.rs/api/v1/repos/darkkirb/nix-packages/pulls'
|
echo '{ "assignee": "darkkirb", "base": "main", "head": "update-${PACKAGE}", "title": "Update ${PACKAGE}", "body": "" }' | curl -X POST -H "Authorization: token $GITEA_TOKEN" -H "Content-Type: application/json" --data-binary @- 'https://git.chir.rs/api/v1/repos/darkkirb/nix-packages/pulls'
|
||||||
secrets:
|
secrets:
|
||||||
- gitea_token
|
- gitea_token
|
||||||
when:
|
when:
|
||||||
|
|
Reference in a new issue