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

GitHub Action

Replace env vars in file

v1.0.2

Replace env vars in file

align-left

Replace env vars in file

Replaces __TOKENS__ with environment variables in file

Installation

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

              

- name: Replace env vars in file

uses: falnyr/[email protected]

Learn more about this action in falnyr/replace-env-vars-action

Choose a version

Replace env vars in file

Replaces Environment variables in file using gettext envsubst.

Usage

Inputs

  • filename File for the replacement.

Example

uses: falnyr/replace-env-vars-action@master
env:
  FOO: foo
  BAR: bar
with:
  filename: /path/to/file