From 9f90cba99387f79c7aa6e77175a4afcc43a0d7d1 Mon Sep 17 00:00:00 2001 From: Benjamin Loison Date: Wed, 22 Mar 2023 14:48:35 +0800 Subject: [PATCH] Correct spaces in `README.md` and in `Enter the runner name` when running `./act_runner register` (#65) Reviewed-on: https://gitea.com/gitea/act_runner/pulls/65 Reviewed-by: Jason Song Co-authored-by: Benjamin Loison Co-committed-by: Benjamin Loison --- README.md | 4 ++-- cmd/register.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0449ec3..bfe50b9 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # act runner -Act runner is a runner for Gitea based on [Gitea fork](https://gitea.com/gitea/act) of [act](https://github.com/nektos/act) . +Act runner is a runner for Gitea based on [Gitea fork](https://gitea.com/gitea/act) of [act](https://github.com/nektos/act). ## Installation @@ -43,7 +43,7 @@ INFO Enter the Gitea instance URL (for example, https://gitea.com/): http://192.168.8.8:3000/ INFO Enter the runner token: fe884e8027dc292970d4e0303fe82b14xxxxxxxx -INFO Enter the runner name (if set empty, use hostname:Test.local ): +INFO Enter the runner name (if set empty, use hostname: Test.local): INFO Enter the runner labels, leave blank to use the default labels (comma-separated, for example, self-hosted,ubuntu-20.04:docker://node:16-bullseye,ubuntu-18.04:docker://node:16-buster): diff --git a/cmd/register.go b/cmd/register.go index 123b548..38695bf 100644 --- a/cmd/register.go +++ b/cmd/register.go @@ -229,7 +229,7 @@ func printStageHelp(stage registerStage) { log.Infoln("Enter the runner token:") case StageInputRunnerName: hostname, _ := os.Hostname() - log.Infof("Enter the runner name (if set empty, use hostname:%s ):\n", hostname) + log.Infof("Enter the runner name (if set empty, use hostname: %s):\n", hostname) case StageInputCustomLabels: log.Infoln("Enter the runner labels, leave blank to use the default labels (comma-separated, for example, self-hosted,ubuntu-20.04:docker://node:16-bullseye,ubuntu-18.04:docker://node:16-buster):") case StageWaitingForRegistration: