You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
prp-preprocessor
0.0.1
Pre-release
The PRP Preprocessor is a GitHub Action that allows you to replace variables in a text file. The variables are defined
in a map and can be used in the text file with the following syntax: {_ variable _}
. Spaces are allowed around the
variable name.
To install the PRP Preprocessor, you can add it as a step in your GitHub Actions workflow. Here's an example of how to use it:
steps:
- name: PRP Preprocessor
uses: brenoepics/prp-preprocessor@v1
with:
rootDir: './example'
extension: '.prp'
Note
TODO
The PRP Preprocessor accepts the following inputs:
Name | Description | Required | Default |
---|---|---|---|
rootDir |
The root directory to start searching for files. | Yes | . |
extension |
The extension of the files to process. | Yes | .prp |
includeSubDirs |
Whether to include subdirectories in the search for files. | No | false |
ignoredVars |
A list of variables to ignore. | No | [] |
ignoredDirs |
A list of directories to ignore, according to the .gitignore spec 2.22.1. | No | ["node_modules",".git",".github","tests",".vscode",".idea"] |
encodings |
The encoding to use when reading and writing files. | No | utf8 |
The PRP Preprocessor does not produce any outputs.
This project is licensed under the Apache-2.0 License.