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

GitHub Action

envsubst-action

1.0.0

envsubst-action

terminal

envsubst-action

wrapper for envsubst

Installation

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

              

- name: envsubst-action

uses: danielr1996/[email protected]

Learn more about this action in danielr1996/envsubst-action

Choose a version

Envsubst Action

This action allows you to substitute environment variables in a file.

Usage

template.json

{
  "version": "${VERSION}",
  "instance": "${INSTANCE}"
}

.github/workflows/pipeline.yaml

- uses: danielr1996/[email protected]
  with:
    input: template.json
    output: deployment.json
    env:
      VERSION: 1.2.3
      INSTANCE: staging

deployment.json

{
  "version": "1.2.3",
  "instance": "staging"
}