Remove trailing slash from instance address

This commit is contained in:
harryzcy 2023-05-19 12:07:07 +08:00
parent 84386c1b16
commit e6e9a2de18
No known key found for this signature in database
GPG key ID: E3C2287691E40E35

View file

@ -184,7 +184,7 @@ func (r *Runner) run(ctx context.Context, task *runnerv1.Task, reporter *report.
JSONLogger: false,
Env: r.envs,
Secrets: task.Secrets,
GitHubInstance: r.client.Address(),
GitHubInstance: strings.TrimSuffix(r.client.Address(), "/"),
AutoRemove: true,
NoSkipCheckout: true,
PresetGitHubContext: preset,