[GH-ISSUE #333] The CI environment variable is not set #235

Closed
opened 2026-03-01 21:41:41 +03:00 by kerem · 0 comments
Owner

Originally created by @negebauer on GitHub (Aug 8, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/333

The GitHub Actions runner sets the CI env variable to true (discussion: https://github.com/actions/runner/issues/368, pr: https://github.com/actions/runner/pull/374).
act doesn't set CI to true when running GitHub Actions, imo it should.

There are a lot of tools/scripts that except the CI env variable to be set when running in CI, like react-scripts for example.

Originally created by @negebauer on GitHub (Aug 8, 2020). Original GitHub issue: https://github.com/nektos/act/issues/333 The GitHub Actions runner sets the `CI` env variable to `true` (discussion: https://github.com/actions/runner/issues/368, pr: https://github.com/actions/runner/pull/374). **act** doesn't set `CI` to `true` when running GitHub Actions, imo it should. There are a lot of tools/scripts that except the CI env variable to be set when running in CI, like `react-scripts` for example.
kerem closed this issue 2026-03-01 21:41:41 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#235
No description provided.