Skip to content

Commit 18f04f7

Browse files
fix(ci): diff_check should not fail when all files are filtered (#3658)
This happens when only `*.md` files are changed.
1 parent 55eb88d commit 18f04f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/skip-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
2929
skipList=(".github/CODEOWNERS" ".prettierignore")
3030
# Ignores changelog.md, readme.md,...
31-
fileChangesArray=($(git diff --name-only origin/${{ github.base_ref }}..origin/${{ github.head_ref }} | grep -v '\.md$'))
31+
fileChangesArray=($(git diff --name-only origin/${{ github.base_ref }}..origin/${{ github.head_ref }} | grep -v '\.md$' || true))
3232
printf '%s\n' "${fileChangesArray[@]}"
3333
for item in "${fileChangesArray[@]}"
3434
do

0 commit comments

Comments
 (0)