Skip to content

Commit

Permalink
fix(ci): diff_check should not fail when all files are filtered (#3658
Browse files Browse the repository at this point in the history
)

This happens when only `*.md` files are changed.
  • Loading branch information
krystofwoldrich authored Mar 5, 2024
1 parent 55eb88d commit 18f04f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/skip-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
skipList=(".github/CODEOWNERS" ".prettierignore")
# Ignores changelog.md, readme.md,...
fileChangesArray=($(git diff --name-only origin/${{ github.base_ref }}..origin/${{ github.head_ref }} | grep -v '\.md$'))
fileChangesArray=($(git diff --name-only origin/${{ github.base_ref }}..origin/${{ github.head_ref }} | grep -v '\.md$' || true))
printf '%s\n' "${fileChangesArray[@]}"
for item in "${fileChangesArray[@]}"
do
Expand Down

0 comments on commit 18f04f7

Please sign in to comment.