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.