File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments