Skip to content

An action to run envsubst on any number of files in your gh workspace

License

Notifications You must be signed in to change notification settings

DominicWatson/github-action-envsubst

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Github action: Inline envsubst

This GitHub Action allows you to run envsubst against a file/list of files, with optional pattern specificity.

Relies on your workflow job running in a Linux VM and therefore does not use docker containers.

Example usage in Github actions workflow

steps:
  - name: Inject version number into files
    uses: dominicwatson/github-action-envsubst@v1
    with:
      files: manifest.json package.json static/bundle.mf
      patterns: $VERSION_NUMBER
    env:
      VERSION_NUMBER: ${{ steps.anotherstep.outputs.version_number }}

Inputs

files

Required. One or more files, separated by a space, that will have envsubst performed on them.

patterns

Optional. Restrict the substitution to a strict set of patterns, rather than attempting to match any patterns found. Patterns separated by a space.

License

This project is licensed under the GPLv2 License - see the LICENSE.txt file for details.

Authors

The project is maintained by Dominic Watson.

About

An action to run envsubst on any number of files in your gh workspace

Resources

License

Stars

Watchers

Forks

Packages

No packages published