IsGitHubActions determines if the current execution context is within GitHub Actions. GitHub Actions sets the GITHUB_ACTIONS environment variable to "true" for all steps. See https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables.
()
| 15 | // GitHub Actions sets the GITHUB_ACTIONS environment variable to "true" for all steps. |
| 16 | // See https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables. |
| 17 | func IsGitHubActions() bool { |
| 18 | return os.Getenv("GITHUB_ACTIONS") == "true" |
| 19 | } |
no outgoing calls