Uses step in Composite Action #25778
-
I am trying to build a Composite action. In that I am trying to use another action with “uses” statement. But I am getting an error when I try to call this composite action from a workflow.- “Unexpected value ‘uses’”. Can’t we call another action from within a composite action? Couldn’t find it in documentation also. |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments
-
Composite Actions can only be created using run steps. They are only designed to chain together multiple “run” steps. Creating a composite run steps action - GitHub Docs |
Beta Was this translation helpful? Give feedback.
-
This has been discussed multiple times on this forum, here is an incomplete list of relevant topics:
|
Beta Was this translation helpful? Give feedback.
-
Thank you. Unfortunately, the documentation doesn’t state what is supported & not supported. This is the reason for the confusion. |
Beta Was this translation helpful? Give feedback.
-
Are there any plans to support |
Beta Was this translation helpful? Give feedback.
-
There is some ongoing work:
Composite Actions Support ADR
[Rendered](https://github.com/actions/runner/blob/4d7988e0ad30584f7c61d8b669a6ba…bf04d0e486/docs/adrs/0000-composite-actions.md) We welcome community feedback, please feel free to comment on this ADR! This ADR outlines the next steps we are taking to change composite run steps into composite actions, and specifically mentions how certain scenarios will work. I haven’t seen anything about when we can expect this to become available, though. |
Beta Was this translation helpful? Give feedback.
-
Shocking amounts of code duplication because this isn’t a feature |
Beta Was this translation helpful? Give feedback.
-
According to the Metadata Syntax documentation, under the section for " Is this a recent change, or is the documentation incorrect? If the documentation is correct and this works now, I’m still not able to get it working. I’m seeing The documentation shows examples like this:
and this:
|
Beta Was this translation helpful? Give feedback.
-
After some trial-and-error, I got |
Beta Was this translation helpful? Give feedback.
-
ramsey:
Sort of recent, as in August, about one month after the last post in this thread before yours. 😉
GitHub Actions: Reduce duplication with action composition | GitHub ChangelogGitHub Actions: Reduce duplication with action composition Est. reading time: 1 minute |
Beta Was this translation helpful? Give feedback.
Composite Actions can only be created using run steps. They are only designed to chain together multiple “run” steps. Creating a composite run steps action - GitHub Docs