Skip to content

Setup Variables

Actions
Map your variables based on other keys
v2.0.0
Latest
Star (1)
setup variables variable mapper github actions

Map variable with ease

uses: simenandre/setup-variables@v2
id: stack
with:
  key: ${{ env.CI_REF_NAME_SLUG }}
  map: |
    main: prod
    staging: staging
    dev: dev
    '*': dev

How does this compare to X?

There are multiple other Github Actions step that tries to solve similar/same issues.

variable-mapper for instance, has mostly the same functionality as this. The schema design is mostly the same, only difference being that the original uses JSON for mapping.

Setup Variables is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Map your variables based on other keys
v2.0.0
Latest

Setup Variables is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.