From 6ba70209831033a93f44cda79c2c9a5631d6fcb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20T=C3=B6lle?= Date: Tue, 6 Aug 2024 00:04:11 +0200 Subject: [PATCH] ci: add username for git basic auth --- action.yml | 1 + cmd/rp/cmd/run.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index deac769..c84aa28 100644 --- a/action.yml +++ b/action.yml @@ -22,3 +22,4 @@ runs: - --branch=${{ inputs.branch }} env: GITHUB_TOKEN: ${{ inputs.token }} + GITHUB_USER: "oauth2" diff --git a/cmd/rp/cmd/run.go b/cmd/rp/cmd/run.go index 7ba1467..4b7c9e2 100644 --- a/cmd/rp/cmd/run.go +++ b/cmd/rp/cmd/run.go @@ -330,7 +330,7 @@ func reconcileReleasePR(ctx context.Context, forge rp.Forge, changesets []rp.Cha Force: true, Auth: forge.GitAuth(), }); err != nil { - return err + return fmt.Errorf("failed to push branch: %w", err) } logger.InfoContext(ctx, "pushed branch", "commit.hash", releaseCommitHash.String(), "branch.name", rpBranch, "refspec", pushRefSpec.String())