Skip to content

Commit

Permalink
ci: add username for git basic auth
Browse files Browse the repository at this point in the history
  • Loading branch information
apricote committed Aug 5, 2024
1 parent edf0958 commit 6ba7020
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ runs:
- --branch=${{ inputs.branch }}
env:
GITHUB_TOKEN: ${{ inputs.token }}
GITHUB_USER: "oauth2"
2 changes: 1 addition & 1 deletion cmd/rp/cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 6ba7020

Please sign in to comment.