adrianjost/File Inject
A GitHub Action to inject text into an exisiting file at a given position.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| filepath | filepath to the file to injet into, relative to the project root | yes | — |
| content | the content that should get injected. Can also be provided by the env 'CONTENT' | — | "" |
| alignment | should the new text be added before or after the position-regex match? Allowed values: 'before', 'after'. | — | after |
| position-regexp | RegExp String where the new content should be added. Defaults to the end of the file. | — | $ |
| regexp-flags | RegExp flags to use. | — | "" |
Outputs
| name | description |
|---|---|
| content | The new file content |