如何从GitHub Action的action.yml文件中引用其他操作? [英] How can I reference other actions from my GitHub Action's action.yml file?
问题描述
是否可以从我的action.yml
文件中引用另一个GitHub Action?
Is it possible to reference another GitHub Action from my action.yml
file?
注意,我说的是此处的操作,而不是工作流程.我知道这可以通过工作流来完成,但是动作可以引用其他动作吗?
Note, I'm talking about an action here, not a workflow. I know this can be done with workflows, but can actions reference other actions?
推荐答案
答案似乎是:不能.
但是,我最终从内部从NPM下载了不同的操作,然后在自己的操作中重复使用它们.
However, I ended up internally downloading the different actions from NPM, and then re-using them within my own action.
总体上可能不是一个好主意,但是我正在执行的此特定操作旨在在我自己的项目上运行,而无需太多配置,因此使其更加正常.
Probably not a good idea in general, but this particular action I am making is designed to run on my own projects without requiring too much configuration, so that makes it more okay.
这篇关于如何从GitHub Action的action.yml文件中引用其他操作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!