Merge pull request #16883 from crazy-max/fix-validate-workflow

ci: fix validate upstream workflow
This commit is contained in:
CrazyMax 2023-03-13 15:48:10 +00:00 committed by GitHub
commit f39e7e307e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ jobs:
yq _config.yml
# cleanup js-yaml module and data files
rm -rf ./node_modules
if [ -n "./_data/${{ inputs.data-files-folder }}" ]; then
if [[ -n "${{ inputs.data-files-folder }}" ]] && [[ -d "./_data/${{ inputs.data-files-folder }}" ]]; then
rm -rf ./_data/${{ inputs.data-files-folder }}/*
fi
-