Skip to content

workflows compiled on Windows can't be executed on Linux #13543

@qmuntal

Description

@qmuntal

Running gh aw compile on Windows generates a lock file that contain an step (the Create prompt with built-in context) with the following content:

- name: Create prompt with built-in context
  run: |
    ...
    {{#runtime-import workflows\patch-consistency-review.md}}

Note that backslash is used as path separator.

When running this job on GitHub Actions using Ubuntu, the Interpolate variables and render templates step fails with the following error:

Processing runtime import macros (files and URLs)
Error: Failed to process runtime import for workflows\patch-consistency-review.md: Runtime import file not found: workflows\patch-consistency-review.md

The error is fixed if I manually replace the backslash to a forward slash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions