gha-utilities/Freeze first code blocks
GitHub Action to parse and convert first found code block in files to image via Freeze
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| source_directory | Directory passed to `find` for finding files Example: "./collections" | yes | — |
| find_regex | Regular Expression passed to `find` to limit found files Example: ".*.md" | yes | — |
| find_regextype | Regular Expression type passed to `find` Available values are: "emacs", "posix-awk", "posix-basic", "posix-egrep", or "posix-extended" | yes | emacs |
| sed_args | Extra flags or arguments to send to `sed`, only used when `sed_expression` input is also defined Example: "-E" | no | — |
| sed_expression | Search/Replace expression to send to `sed` for mutating Input/Output path Example: "s@collections/_@assets/images/@" | no | — |
| freeze_config | File path to freeze configuration Example: "./ci-cd/.config/freeze/user.json" | no | — |
| clobber | Enable clobbering preexisting files by setting to `1` | no | 0 |
| verbose | Enable `printf` logging by setting non-zero integer value | no | 0 |
Outputs
| name | description |
|---|---|
| found | New-line separated list of file paths found with `find` and provided inputs |
| wrote | New-line separated list of file paths written by `freeze` with provided inputs |
| failed | New-line separated list of file paths `freeze` failed to write |