Skip to content

Commit 8bcbd6c

Browse files
committed
handle the directories separately
1 parent d5b6fc1 commit 8bcbd6c

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

.github/workflows/build-tag-release.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,15 @@ jobs:
2626
run_plugin_update="false"
2727
for file in ${{ steps.get-changed-files.outputs.all }}; do
2828
echo "Checking if file '$file' should trigger a plugin release"
29-
if [[ "$file" == */.github/* ]]; then
30-
echo "'$file' is an absolute path containing .github/."
31-
elif [[ "$file" == .github/* ]]; then
32-
echo "'$file' is a relative path inside .github/."
29+
if [[ "$file" == .github/* ]] || \
30+
[[ "$file" == .wordpress.org/ ]] then
31+
echo "'$file' is inside an ignored directory."
32+
continue
3333
fi
34-
if [[ "$file" != *".wordpress.org/"* ]] && \
35-
[[ "$file" != *".github/"* ]] && \
36-
[[ "$file" != *"readme." ]] && \
37-
[[ "$file" != *".gitattributes" ]] && \
38-
[[ "$file" != *".gitignore" ]] && \
39-
[[ "$file" != *"catalog-info.yml" ]] && \
34+
if [[ "$file" != readme.* ]] && \
35+
[[ "$file" != .gitattributes ]] && \
36+
[[ "$file" != .gitignore ]] && \
37+
[[ "$file" != catalog-info.yml ]] && \
4038
[[ "$file" != *composer* ]]; then
4139
echo "'$file' is not an ignored file."
4240
run_plugin_update="true"

0 commit comments

Comments
 (0)