You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The env field is currently not supported in shared import files (.md files used as shared imports). When an env block is placed in a shared import, the compiler silently ignores it with a warning:
⚠ Ignoring unexpected frontmatter fields in shared/common.md: env
Motivation
Shared imports are a great way to centralise common configuration. Currently, network, engine, and jobs fields can be placed in shared imports and are correctly merged into importing workflows. The env field should behave the same way.
A concrete use case: defining a shared TARGET_REPOSITORY variable in a shared import so that all workflows that import it automatically inherit the correct target repository, without having to repeat:
The compiled my-workflow.lock.yml should include TARGET_REPOSITORY: owner/repo in its env section, just as network.allowed entries are merged from shared imports today.
Actual Behavior
The env field in shared/target.md is silently ignored. No entries from it appear in the compiled lock file.
Activity
community: update community contributions for 2026-04-14