question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Compose GitHub actions as a single GitHub action

See original GitHub issue

What 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:closed
  • Created 3 years ago
  • Reactions:167
  • Comments:23 (5 by maintainers)

github_iconTop GitHub Comments

103reactions
hrosscommented, Jun 14, 2020

We are picking up work here so keep an eye out for activity. We will update things as we go.

75reactions
chrispatcommented, Aug 6, 2020

We are targeting next week to make to make this available.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found