From 1624346409dac528480d7ad43b63f8b189e7fa81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jalil=20David=20Salam=C3=A9=20Messina?= Date: Sat, 12 Oct 2024 22:15:19 +0200 Subject: [PATCH] fix(ci): do not use a name when logging in This should fix an error with `tea` --- .forgejo/workflows/update.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.forgejo/workflows/update.yml b/.forgejo/workflows/update.yml index aad6c30..8071910 100644 --- a/.forgejo/workflows/update.yml +++ b/.forgejo/workflows/update.yml @@ -21,7 +21,7 @@ jobs: - run: nix run .#cargo-update - name: craft PR body and commit message run: | - set -euo pipefail + set -xeuo pipefail echo "${COMMIT_MESSAGE}" > commit.txt cat cargo_update.log >> commit.txt @@ -32,7 +32,7 @@ jobs: echo '```' >> body.md - name: commit run: | - set -euo pipefail + set -xeuo pipefail git config user.name forgejo-actions git config user.email forgejo-actions@salame.cl @@ -46,7 +46,7 @@ jobs: git commit --no-verify --file=commit.txt - name: push run: | - set -euo pipefail + set -xeuo pipefail git push --no-verify --force --set-upstream origin "$BRANCH_NAME" - name: open new pull request env: @@ -57,6 +57,6 @@ jobs: # GITHUB_TOKEN: ${{ secrets.DEPS_UPDATER_GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - set -euo pipefail - tea login add --name "forgejo-actions" --token "$GITHUB_TOKEN" + set -xeuo pipefail + tea login add --token "$GITHUB_TOKEN" tea pr create --title "${PR_TITLE}" --description "$(cat body.md)" --repo "$GITHUB_REPOSITORY"