Skip to content

Commit

Permalink
Merge pull request #113 from 417-72KI/default-value-to-environment
Browse files Browse the repository at this point in the history
Set environment variable for GitHub token in default
  • Loading branch information
mono0926 authored Oct 9, 2019
2 parents a1a0bcd + d08c4a0 commit 48a622c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/LicensePlist/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 48a622c

Please sign in to comment.