Skip to content
This repository has been archived by the owner on Nov 12, 2023. It is now read-only.

Latest commit

 

History

History
33 lines (27 loc) · 466 Bytes

README.md

File metadata and controls

33 lines (27 loc) · 466 Bytes

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]
  env:
      VERSION: 1.2.3
      INSTANCE: staging
  with:
    input: template.json
    output: deployment.json

deployment.json

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