ci: add username for git basic auth

This commit is contained in:
Julian Tölle 2024-08-06 00:04:11 +02:00
parent edf09585d8
commit 6ba7020983
2 changed files with 2 additions and 1 deletions

View file

@ -22,3 +22,4 @@ runs:
- --branch=${{ inputs.branch }} - --branch=${{ inputs.branch }}
env: env:
GITHUB_TOKEN: ${{ inputs.token }} GITHUB_TOKEN: ${{ inputs.token }}
GITHUB_USER: "oauth2"

View file

@ -330,7 +330,7 @@ func reconcileReleasePR(ctx context.Context, forge rp.Forge, changesets []rp.Cha
Force: true, Force: true,
Auth: forge.GitAuth(), Auth: forge.GitAuth(),
}); err != nil { }); 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()) logger.InfoContext(ctx, "pushed branch", "commit.hash", releaseCommitHash.String(), "branch.name", rpBranch, "refspec", pushRefSpec.String())