Skip to content

Commit 7a2426b

Browse files
authored
Update Package.swift to use GitHub Action env var
This way things don't behave strangely on other environments that set `CI=1`.
1 parent d7bb11b commit 7a2426b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ let package = Package(
157157
)
158158

159159
if ProcessInfo.processInfo.environment["SPI_GENERATE_DOCS"] != nil
160-
|| ProcessInfo.processInfo.environment["CI"] != nil // NB: For local testing in Xcode:
161-
// || true
160+
|| ProcessInfo.processInfo.environment["GITHUB_ACTION"] != nil
161+
// || true // NB: Uncomment for local testing in Xcode
162162
{
163163
package.traits.insert(
164164
.default(

0 commit comments

Comments
 (0)