Runner: Reuse/import workflows

Created on 8 Oct 2020  路  2Comments  路  Source: actions/runner

Describe the enhancement

Workflows tend to grow large once you start splitting some steps to run in separate jobs. Some other workflows are inherently large because they do a lot.

In many cases, I reuse the same workflow in multiple repositories and I wish I could just import it instead of copy-pasting it and manually updating it everywhere.

Code Snippet

I wish I could just use this in a workflow file:

import:
  - use: fregante/workflows@v1
    file: webextension-deployment.yml

and this would work as if I copied the whole file.

enhancement

Most helpful comment

The biggest reason I'm currently staying on Travis CI for existing projects is that the same config for GitHub Actions is more verbose and boilerplaty. Would be nice if workflows could be reused across repos.

All 2 comments

The biggest reason I'm currently staying on Travis CI for existing projects is that the same config for GitHub Actions is more verbose and boilerplaty. Would be nice if workflows could be reused across repos.

This will be a game changer to manage workflows on a big org.

Was this page helpful?
0 / 5 - 0 ratings