GitHub Action - Set Variables

Introduction


Are you missing the Azure DevOps Library variable groups in GitHub Actions? If yes, then this action will act as a substitution of Library variable groups in GitHub. This is a GitHub Action used to convert variables.json files into environment variables.

Screenshot of set variable action on GitHub Marketplace

This action contains a bash script which reads a variable.json file in .github > variables folder and then add these values as environment variables in workflow, thus allowing one to share variables among multiple workflows.

Find more details about how to use it: GitHub Marketplace

This action is actively being used across projects today, some examples of these are:

  1. Azure - Resource Modules
Project artifacts & details

Marketplace: set-variable

Repository: https://github.com/deep-mm/set-variables

Technology: GitHub actions, yaml, bash