lfreleng-actions/Extract string from file using GREP
Uses grep and a regular expression to extract text from files
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Jul 8, 2026
- License
- None
Pinned Snippet
uses: lfreleng-actions/file-grep-regex-action@d35a2dedbdd69fcd6a76bc5898542eb508125970 # v0.1.5tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| regex | Regular expression used to extract string | yes | — |
| filename | File containing text to extract | yes | — |
| flags | Flags to use with grep command | no | -E |
| no_fail | Override errors if file not found or no value returned | no | false |
Outputs
| name | description |
|---|---|
| extracted_string | The string extracted by the regular expression |