Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
play

GitHub Action

Scoped Env

v1.0.0

Scoped Env

play

Scoped Env

A Github action to expose scoped environment variables

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Scoped Env

uses: muchobien/[email protected]

Learn more about this action in muchobien/scoped-env

Choose a version

CodeQL build-test

"Scoped Env" Action For GitHub Actions

A github action to select correct environments based on scope, e.g. production or staging.

Usage

Add the following step to your workflow:

- name: 'Select correct scope environment variables'
  uses: muchobien/scoped-env@v1
  with:
    secrets: ${{ toJSON(secrets) }}
    scope: PROD
    includes: 'FROM_INCLUDES' # optional
    exporters: 'env,output' # default, optional

License Summary

This code is made available under the MIT license.