diff --git a/.github/workflows/workflow-yaml-check.yml b/.github/workflows/workflow-yaml-check.yml index 1b08645e..d071b9b2 100644 --- a/.github/workflows/workflow-yaml-check.yml +++ b/.github/workflows/workflow-yaml-check.yml @@ -31,8 +31,8 @@ jobs: for file in $files; do if [[ $file == *.yml || $file == *.yaml ]]; then # Check if a custom config path is provided and file exists - if [[ -n "$config_path" && -f "$config_path" ]]; then - yamllint -c ${{ inputs.config-file-path }} "$file" + if [ -n "${{ github.event.inputs.config-file-path }}" ]; then + yamllint -c "${{ github.workspace }}/${{ github.event.inputs.config-file-path }}" "$file" else yamllint "$file" fi