mirror of
				https://gitea.com/gitea/act_runner.git
				synced 2025-10-30 20:37:56 +01:00 
			
		
		
		
	Use node 20 by default (#526)
Because Octokit requires Node 18 or higher now. See https://github.com/octokit/octokit.js/#fetch-missing . However, for existing runners, users should manually modify `labels` in the `.runner` file or `runner.labels` in the `config.yaml` file to update. Don't forget to restart. Reviewed-on: https://gitea.com/gitea/act_runner/pulls/526 Reviewed-by: sillyguodong <sillyguodong@noreply.gitea.com>
This commit is contained in:
		| @@ -55,7 +55,6 @@ func (l Labels) PickPlatform(runsOn []string) string { | ||||
| 		switch label.Schema { | ||||
| 		case SchemeDocker: | ||||
| 			// "//" will be ignored | ||||
| 			// TODO maybe we should use 'ubuntu-18.04:docker:node:16-buster' instead | ||||
| 			platforms[label.Name] = strings.TrimPrefix(label.Arg, "//") | ||||
| 		case SchemeHost: | ||||
| 			platforms[label.Name] = "-self-hosted" | ||||
| @@ -80,7 +79,7 @@ func (l Labels) PickPlatform(runsOn []string) string { | ||||
| 	// So the runner receives a task with a label that the runner doesn't have, | ||||
| 	// it happens when the user have edited the label of the runner in the web UI. | ||||
| 	// TODO: it may be not correct, what if the runner is used as host mode only? | ||||
| 	return "node:16-bullseye" | ||||
| 	return "node:20-bookworm" | ||||
| } | ||||
|  | ||||
| func (l Labels) Names() []string { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user