Compose GitHub actions as a single GitHub action
See original GitHub issueWhat I like from GitHub action is we can ensure that our action is up-to-date with available fixes in the upstream. E.g.: we can use actions/checkout@v2
and the CI will still run with the latest version of checkout@v2
.
Unfortunately, this facility can’t be used while we’re creating a GitHub action. I think it’s better if we can compose multiple GitHub actions into a single GitHub action, or maybe just use one or two GitHub actions for the trivial tasks and continue the other in Javascript or Docker container.
This is an imaginary action.yml
to serve as an example, maybe it’s cool if we can do this:
name: 'imaginary-extension'
description: 'Imaginary extension about composing actions'
runs:
using: composite
steps:
- name: Python 3
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Requirements
run: pip install -r requirements.txt
Issue Analytics
- State:
- Created 3 years ago
- Reactions:167
- Comments:23 (5 by maintainers)
Top Results From Across the Web
Creating a composite action
In this guide, you'll learn how to build a composite action. ... Example composite actions on GitHub.com. In this guide, you'll learn how...
Read more >Understanding GitHub Actions
An action is a custom application for the GitHub Actions platform that performs a complex but frequently repeated task. Use an action to...
Read more >Creating actions
You can create your own actions, use and customize actions shared by the GitHub community, or write and share the actions you build....
Read more >About custom actions
Actions are individual tasks that you can combine to create jobs and customize your workflow. You can create your own actions, or use...
Read more >Marketplace Actions Docker Compose Action
Docker Compose Action. This action runs your docker-compose file and clean up before action finished. Inputs. compose-file. Optional The name of the compose...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We are picking up work here so keep an eye out for activity. We will update things as we go.
We are targeting next week to make to make this available.