From d08c4a0681c4b8e7dac7a3a54bca911102f4aebd Mon Sep 17 00:00:00 2001 From: 417-72KI <417.72ki@gmail.com> Date: Fri, 16 Aug 2019 16:09:42 +0900 Subject: [PATCH] Set environment variable for github-token in default --- Sources/LicensePlist/main.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/LicensePlist/main.swift b/Sources/LicensePlist/main.swift index 89527d71..0fa4207e 100644 --- a/Sources/LicensePlist/main.swift +++ b/Sources/LicensePlist/main.swift @@ -33,7 +33,7 @@ let main = command(Option("cartfile-path", default: Consts.cartfileName), podsPath: URL(fileURLWithPath: podsPath), packagePath: URL(fileURLWithPath: packagePath), prefix: prefix, - gitHubToken: gitHubToken.isEmpty ? nil : gitHubToken, + gitHubToken: gitHubToken.isEmpty ? ProcessInfo.processInfo.environment["LICENSE_PLIST_GITHUB_TOKEN"] : gitHubToken, htmlPath: htmlPath.isEmpty ? nil : URL(fileURLWithPath: htmlPath), markdownPath: markdownPath.isEmpty ? nil : URL(fileURLWithPath: markdownPath), config: config)