cli.meta.runtime packageΒΆ
Module contentsΒΆ
- cli.meta.runtime.detect_runtime() strΒΆ
Detect the current execution runtime.
Returns the value of the
RUNTIMEenv var when set (callers pass e.g."dev"here to flag a local development compose run), or one of the auto-detected labels otherwise:βactβ : local GitHub Actions emulation (act)
βgithubβ : real GitHub Actions runner
βhostβ : native host execution (default)
- Precedence:
RUNTIME (explicit override)
act (must come before github because act sets GITHUB_ACTIONS=true)
github
host