Skip to content

Commit 09f8222

Browse files
committed
ci: more checks on PRs
1 parent eed1b86 commit 09f8222

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/validate-pull-requests.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,13 @@ jobs:
3636
3737
while read modifier file; do
3838
if [[ $file == _plugins/* ]] && [[ $file == *.md ]]; then
39+
args="--debug --check-internal-assets --check-id-match --check-asset-match --check-py3-compat --action-output"
3940
if [ "$modifier" == "M" ]; then
4041
echo "MODIFIED: $file"
41-
python ../current/.github/scripts/validate_front_matter.py "$file" --debug --check-date-unchanged=${{ github.event.pull_request.base.sha }} --action-output
42+
python ../current/.github/scripts/validate_front_matter.py "$file" --check-date-unchanged=${{ github.event.pull_request.base.sha }} $args
4243
elif [ "$modifier" == "A" ]; then
4344
echo "ADDED: $file"
44-
python ../current/.github/scripts/validate_front_matter.py "$file" --debug --check-internal-assets --check-id-match --check-py3-compat --action-output
45+
python ../current/.github/scripts/validate_front_matter.py "$file" $args
4546
fi
4647
fi
4748
done < <(git diff-tree --no-commit-id --name-status -r ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} | xargs -n2 )

0 commit comments

Comments
 (0)