forked from docs/doc-exports
bit more polishing
This commit is contained in:
@ -41,7 +41,7 @@ jobs:
|
||||
BASE_SHA="${{ gitea.event.pull_request.base.sha }}"
|
||||
echo "Base SHA: $BASE_SHA"
|
||||
git fetch origin $BASE_SHA
|
||||
echo "changed_files=$(git diff --name-only ${BASE_SHA}...HEAD | xargs)" >> $GITHUB_OUTPUT
|
||||
echo "changed_files=$(git diff --name-only ${BASE_SHA}...HEAD | grep -E '\.(yml|yaml)$' | xargs)" >> $GITHUB_OUTPUT
|
||||
# - name: Get changed files
|
||||
# id: changed-files
|
||||
# run: |
|
||||
@ -97,10 +97,11 @@ jobs:
|
||||
echo "Linting changed files:"
|
||||
echo "$files"
|
||||
|
||||
for file in $files; do
|
||||
# for file in $files; do
|
||||
for file in ${{ steps.changed-files.outputs.changed_files }};
|
||||
echo "$file is being checked for yamllint issues."
|
||||
yamllint -f parsable $file || \
|
||||
{ failed_check=true ; echo "$file: detected yamllint errors!"; }
|
||||
{ failed_check=true ; echo "$file: detected yamllint errors!"; }
|
||||
done
|
||||
if [ "$failed_check" = true ]; then
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user