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.
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 }}
Required. One or more files, separated by a space, that will have envsubst performed on them.
Optional. Restrict the substitution to a strict set of patterns, rather than attempting to match any patterns found. Patterns separated by a space.
This project is licensed under the GPLv2 License - see the LICENSE.txt file for details.
The project is maintained by Dominic Watson.