checks/regex
The regex
action checks whether a specific regular expression appears in its input.
It is typically used to validate log or text output (e.g., looking for convergence messages, warnings, or specific patterns).
Example Usage
steps:
- name: Produce output
id: sim
run: |
echo This is some text
echo Simulation completed successfully
- uses: checks/regex
with:
input: ${{ steps.sim.output }}
pattern: "Simulation completed successfully"
Arguments
input
(string, required): Input that will be checkedpattern
(string, required): The regular expression to match (interpreted using Python’s re module).
Notes
This action uses exact string matching (not float-aware); use checks/regex-float for numerical comparisons.
Useful for checking message logs, printed summaries, or warnings.