DEV Community

Discussion on: GitHub Composite Actions - STOP wasting your time and create reusable actions

Collapse
 
choc13 profile image
Matt Thornton

One thing that caught me out was that you can’t reference other actions from within your composite action. Both the name “composite action” and the fact this post talks about “nesting actions within actions” led me astray for a while.

The crucial bit is that right now “uses” is not supported in a composite action. You can basically only use it to create a new action from several shell commands.

Just popping this here so others don’t go down that path of trying to refactor their workflows.

Collapse
 
n3wt0n profile image
Davide 'CoderDave' Benvegnù • Edited

You are right, I should probably ass that to the article.

The reason why I haven't ephatsized that much is because the support for uses was to be added soon at the time I wrote the article and made the video. However, apparently the team's backlog has shifted and it's still not supported -_-'

Collapse
 
markbirbeck profile image
Mark Birbeck • Edited

Can now use other actions:

github.blog/changelog/2021-08-25-g...

Thread Thread
 
n3wt0n profile image
Davide 'CoderDave' Benvegnù

Yes, I’ve already made an article and a video about this new feature : dev.to/n3wt0n/create-github-action...

Collapse
 
n3wt0n profile image
Davide 'CoderDave' Benvegnù

I've just double checked and in fact I do mention that in the "Unsupported Features" section :)

Thread Thread
 
choc13 profile image
Matt Thornton

Ah yeah I see it now. 👍 I guess the name makes more sense if their plan was to add support for “uses”. It’s a shame they’ve not been able to implement it yet though, it would be a nice feature.