Skip to content
align-left

GitHub Action

Replace env vars in file

v1.3.2 Latest version

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 __TOKENS__ with environment variables in file.

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