fix(ci): remove tea
`tea` doesn't like the forgejo GITHUB_TOKENs and doesn't work.
This commit is contained in:
parent
7bc103e861
commit
502f7cbcdf
1 changed files with 14 additions and 5 deletions
|
@ -9,7 +9,7 @@ env:
|
||||||
Automation to keep dependencies in `Cargo.lock` current.
|
Automation to keep dependencies in `Cargo.lock` current.
|
||||||
|
|
||||||
The following is the output from `cargo update`:
|
The following is the output from `cargo update`:
|
||||||
COMMIT_MESSAGE: "chore: cargo update \n\n"
|
COMMIT_MESSAGE: "chore(deps): cargo update"
|
||||||
jobs:
|
jobs:
|
||||||
update-cargo:
|
update-cargo:
|
||||||
runs-on: nixos
|
runs-on: nixos
|
||||||
|
@ -24,6 +24,7 @@ jobs:
|
||||||
set -xeuo pipefail
|
set -xeuo pipefail
|
||||||
|
|
||||||
echo "${COMMIT_MESSAGE}" > commit.txt
|
echo "${COMMIT_MESSAGE}" > commit.txt
|
||||||
|
printf '\n\n' >> commit.txt
|
||||||
cat cargo_update.log >> commit.txt
|
cat cargo_update.log >> commit.txt
|
||||||
|
|
||||||
echo "${PR_MESSAGE}" > body.md
|
echo "${PR_MESSAGE}" > body.md
|
||||||
|
@ -54,9 +55,17 @@ jobs:
|
||||||
# PRs opened from a workflow using the standard `GITHUB_TOKEN` in GitHub Actions
|
# PRs opened from a workflow using the standard `GITHUB_TOKEN` in GitHub Actions
|
||||||
# do not automatically trigger more workflows:
|
# do not automatically trigger more workflows:
|
||||||
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow
|
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow
|
||||||
# GITHUB_TOKEN: ${{ secrets.DEPS_UPDATER_GITHUB_TOKEN }}
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
set -xeuo pipefail
|
set -euo pipefail
|
||||||
tea login add --token "$GITHUB_TOKEN"
|
curl -X POST \
|
||||||
tea pr create --title "${PR_TITLE}" --description "$(cat body.md)" --repo "$GITHUB_REPOSITORY"
|
-H "Authorization: token $GITHUB_TOKEN" \
|
||||||
|
-H 'Content-Type: application/json' \
|
||||||
|
-d "$(
|
||||||
|
echo '{}' |
|
||||||
|
jq --arg body "$(cat body.md)" \
|
||||||
|
--arg title "$COMMIT_MESSAGE" \
|
||||||
|
--arg head "$BRANCH_NAME" \
|
||||||
|
'{"body": $body, "title": $title, "head": $head, "base": "main"}'
|
||||||
|
)" \
|
||||||
|
"$GITHUB_API_URL/repos/$GITHUB_REPOSITORY/pulls"
|
||||||
|
|
Loading…
Reference in a new issue