Using Composite Actions with GitHub Actions
Basics 🔗
When developing new automations it’s best to make each component as modular and reusable as possible. When using GitHub Actions, Composite Actions may be your answer for quick development and reusability.
Composite Actions allow you to execute multiple shell steps by calling the Action. These shell steps can be bash, python, nodejs, or powershell. This functionality can be very powerful when you have logic you often want to reuse.
Take for example, running a small Python script that requires a dependency in an Actions Workflow. You could create a Composite Action that:
评论
?
参与讨论