Skip to content

Commit 5b7633d

Browse files
Merge pull request #38 from gabriel-samfira/remove-default-labels-for-windows
Use --no-default-labels on Windows as well
2 parents 22c7dd7 + 316943c commit 5b7633d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cloudconfig/templates.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -538,9 +538,9 @@ function Install-Runner() {
538538
Invoke-WebRequest -UseBasicParsing -Headers @{"Accept"="application/json"; "Authorization"="Bearer $Token"} -Uri $MetadataURL/runner-registration-token/
539539
} -MaxRetryCount 5 -RetryInterval 5 -RetryMessage "Retrying download of GitHub registration token..."
540540
{{- if .GitHubRunnerGroup }}
541-
./config.cmd --unattended --url "{{ .RepoURL }}" --token $GithubRegistrationToken --runnergroup {{.GitHubRunnerGroup}} --name "{{ .RunnerName }}" --labels "{{ .RunnerLabels }}" --ephemeral --runasservice
541+
./config.cmd --unattended --url "{{ .RepoURL }}" --token $GithubRegistrationToken --runnergroup {{.GitHubRunnerGroup}} --name "{{ .RunnerName }}" --labels "{{ .RunnerLabels }}" --no-default-labels --ephemeral --runasservice
542542
{{- else}}
543-
./config.cmd --unattended --url "{{ .RepoURL }}" --token $GithubRegistrationToken --name "{{ .RunnerName }}" --labels "{{ .RunnerLabels }}" --ephemeral --runasservice
543+
./config.cmd --unattended --url "{{ .RepoURL }}" --token $GithubRegistrationToken --name "{{ .RunnerName }}" --labels "{{ .RunnerLabels }}" --no-default-labels --ephemeral --runasservice
544544
{{- end}}
545545
546546
$agentInfoFile = Join-Path $runnerDir ".runner"

0 commit comments

Comments
 (0)