diff options
author | harryzcy <harryzcy@noreply.gitea.io> | 2023-05-22 17:50:29 +0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2023-05-22 17:50:29 +0200 |
commit | e3271d8469b605cc1a380b6e1e835aff6178170a (patch) | |
tree | c0aa3fba39a1b8311dd1e921e941a50569a602d1 /internal/app/run/runner.go | |
parent | Add exec command flag of `network` (#192) (diff) | |
download | forgejo-runner-e3271d8469b605cc1a380b6e1e835aff6178170a.tar.xz forgejo-runner-e3271d8469b605cc1a380b6e1e835aff6178170a.zip |
Remove trailing slash from instance address (#197)
Related #136
Co-authored-by: harryzcy <harry@harryzheng.com>
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/197
Reviewed-by: Jason Song <i@wolfogre.com>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: harryzcy <harryzcy@noreply.gitea.io>
Co-committed-by: harryzcy <harryzcy@noreply.gitea.io>
Diffstat (limited to 'internal/app/run/runner.go')
-rw-r--r-- | internal/app/run/runner.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/app/run/runner.go b/internal/app/run/runner.go index b07e59c..a36adad 100644 --- a/internal/app/run/runner.go +++ b/internal/app/run/runner.go @@ -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, |