Skip to content

use CI=true parameter to detect that the build is happening on GitHub Action platform #1

@developer-guy

Description

@developer-guy

The GitHub Actions runner now sets the CI=true environment variable by default.
Source: https://github.blog/changelog/2020-04-15-github-actions-sets-the-ci-environment-variable-to-true/

Wouldn't be nice if we can check this environment variable that I mentioned in the title of the issue to detect the build is actually happening in GitHub Action as an additional control to this code here.

WDYT? @laurentsimon, btw, I'm willing to do this if you agree with the idea, thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions