Skip to content

Conversation

@michaelwebb76
Copy link
Member

Fixes #8

Comment on lines +57 to +60
data RunIf
= RunIfBool Bool
| RunIfString Text
deriving stock (Eq, Generic, Ord, Show)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possible future work: capture a proper AST here?

--
-- The type preserves the original format during round-trip serialization,
-- so numeric inputs remain numeric in the output YAML.
data UnstructuredValue
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can GHA YAML use nulls here, and if so, should we represent them?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hrm hypothetically a null can be represented in the YAML, but I cannot think of any instance where having a null in a GHA workflow would be valid

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if ScalarValue would have been a more meaningful name here? "Unstructured" can mean different things to different people.

It's still debatable, of course, whether a Null value is "structured" or "scalar".

@michaelwebb76 michaelwebb76 merged commit 3fabb8e into master Jul 21, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

importWorkflow doesn't accept some action inputs that are allowed by GitHub

4 participants