Skip to content

Document Object Element Dereference Syntax #11762

Closed
@Kurt-von-Laven

Description

@Kurt-von-Laven

Code of Conduct

What article on docs.github.com is affected?

Expressions: Object filters

What part(s) of the article would you like to see updated?

The section on object filters can be read to give the impression that the * syntax can only be used on arrays, but it can also be used on objects. Consider adding an example illustrating the use and behavior of * with objects.

Additional information

For example, as documented by slack-templates, ${{ needs.*.result }} evaluates to an array of the results of the jobs that the current job directly depends on even though needs is an object, not an array. Disclosure: I am the author of slack-templates. The existing documentation resulted in a bug in Actionlint: rhysd/actionlint#66.

Metadata

Metadata

Assignees

No one assigned

    Labels

    actionsThis issue or pull request should be reviewed by the docs actions teamcontentThis issue or pull request belongs to the Docs Content teamgood first issueGood for newcomershelp wantedAnyone is welcome to open a pull request to fix this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions