Introduction to Reusable Workflows - Blogs

Introduction to Reusable Workflows

A reusable workflow is a pre-defined GitHub Actions workflow that can be called from another workflow. Reusable workflows make it easy to treat a workflow like an Action. It can be referenced and executed from other workflows in the caller’s context. This allows teams to share common workflow patterns, to centralize best practices, and to centralize the development of processes.

Reusable workflows listen for a special event, workflow_call. The workflow must be in the .github/workflows folder to be triggered. The workflow can also receive inputs.

Benefits of using reusable workflows:

  • Duplication is minimized by reusing workflows. This makes workflows easier to maintain and allows you to easily develop new workflows by building on the work of others, much like you do with actions.
  • You can reuse workflows rather than copying and pasting them from one to the next. The reusable process can then be called from another workflow by you or anybody with access to it.
  • Reusing workflows reduces redundancy and allows you to create a library of reusable workflows that can be maintained inside your company.

Creating Reusable workflow from GitHub Actions:

  • Reusable workflows are the same as ordinary GitHub Actions workflows, except that they must be triggered by a single special event called workflow call before they may be used as reusable workflows.


  • The keyword uses can then be added to this workflow and it can be used in other workflows.


  • To have access to reusable workflows within your organization. Simply go to Actions in your settings and select Allow all actions and reusable workflows in your organization.




Example of Reusable workflow using in another workflow:

The below workflow is the reusable workflow with name - Workflow-A.yml




Below is the workflow calling reusable workflow with name - workflow-B.yml.




Limitations with reusable workflows:

  • If you have a reusable workflow in a private repository, it can only be used by other workflows in the same private repository.
  • A reusable workflow can only call another reusable workflow, but it can't reference more than once.
  • If reusable workflows are stored in a public repository, your organization may only use them in that repository.
  • Reusable workflows can't call other reusable workflows.


Difference Between K8S vs Azure Kubernetes Service (AKS)

Kubernetes aka K8s is container orchestration tool, which helps us to control our containers in the ...

Read More >

Introduction to Amazon S3 (Simple Storage Service) and EC2 (Elastic Cloud Computing) in Asp.Net

S3 is an Internet storage engine which has to be designed to make job easier for developers.Develope...

Read More >

Dashboard Migrator Tool

This is a web service which helps you to copy the VSTS dashboards from 1 team to another team easing...

Read More >

Microsoft Azure : Creating JAVA application & configure

We will create Java web app in Azure App Service by using the Azure portal. The Azure...

Read More >

Extent Reports in Selenium CSharp (C#)

Reports play a fundamental role when it comes to TESTING. Tester can now  know the real-time r...

Read More >

Canarys is a finalist for 2014 Microsoft ALM partner of the year award from INDIA

Bangalore, Karnataka, India — May 29, 2014 — Canarys, today announced it has been named ...

Read More >

What's New In C# 6.0?

Microsoft has released the preview version of Visual Studio 2015 and .NET 4.6 for developers to try ...

Read More >

What's New in Microsoft Dynamics NAV 2017

We were hearing about Dynamics NAV 2017 since long time that it will be releasing by the end of 2016...

Read More >


The k8s node affinity feature is to ensure pods are hosted on a particular node. As mentioned in pre...

Read More >

CfMD services -Dynamics NAV

CfMD services help ISVs minimize the time and effort needed to get their software solution through t...

Read More >


Try DevOpSmartBoard Ultimate complete Azure DevOps End-to end reporting tool

Sign Up

  • Recent
  • Popular
  • Tag
Monthly Archive

Contact Us
  • *
  • *