diff --git a/action.yml b/action.yml index ee2ebf9..4784ff0 100644 --- a/action.yml +++ b/action.yml @@ -45,6 +45,10 @@ inputs: description: "Whether to checkout submodules, value can be 'true', 'recursive', or 'false'" required: false default: "true" + run_prebuild: + description: "Whether to run the pre-build task after installation and before running any tests. Value can be 'true', or 'false'" + required: false + default: "false" runs: using: "composite" @@ -67,6 +71,11 @@ runs: python -m pip install --upgrade pip pip install -e ".[dev]" + if [[ ${{ inputs.run_prebuild }} = "true" ]]; then + echo Running pre-build task + invoke pre-build + fi; + if [[ ${{ inputs.invoke_lint }} == "true" ]]; then invoke lint fi; @@ -127,6 +136,11 @@ runs: exit 1 fi + if [[ ${{ inputs.run_prebuild }} = "true" ]]; then + echo Running pre-build task + invoke pre-build + fi; + if [[ ${{ inputs.invoke_lint }} = "true" ]]; then invoke lint fi;