check_workflow_names¶
rhiza_hooks.check_workflow_names
¶
Script to ensure GitHub Actions workflows have the (RHIZA) prefix.
This hook checks that all rhiza workflow files have their 'name' field properly formatted with the (RHIZA) prefix in uppercase. If not, it automatically updates the file.
Migrated from: https://github.com/Jebel-Quant/rhiza/.rhiza/scripts/check_workflow_names.py
check_file(filepath)
¶
Check if the workflow file has the correct name prefix and update if needed.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filepath
|
str
|
Path to the workflow file. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
True if file is correct, False if it was updated or has errors. |
Source code in rhiza_hooks/check_workflow_names.py
main(argv=None)
¶
Execute the script.