Skip to content

Commit

Permalink
handle the directories separately
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzsequence committed Oct 29, 2024
1 parent d5b6fc1 commit 8bcbd6c
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/build-tag-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,15 @@ jobs:
run_plugin_update="false"
for file in ${{ steps.get-changed-files.outputs.all }}; do
echo "Checking if file '$file' should trigger a plugin release"
if [[ "$file" == */.github/* ]]; then
echo "'$file' is an absolute path containing .github/."
elif [[ "$file" == .github/* ]]; then
echo "'$file' is a relative path inside .github/."
if [[ "$file" == .github/* ]] || \
[[ "$file" == .wordpress.org/ ]] then
echo "'$file' is inside an ignored directory."
continue
fi
if [[ "$file" != *".wordpress.org/"* ]] && \
[[ "$file" != *".github/"* ]] && \
[[ "$file" != *"readme." ]] && \
[[ "$file" != *".gitattributes" ]] && \
[[ "$file" != *".gitignore" ]] && \
[[ "$file" != *"catalog-info.yml" ]] && \
if [[ "$file" != readme.* ]] && \
[[ "$file" != .gitattributes ]] && \
[[ "$file" != .gitignore ]] && \
[[ "$file" != catalog-info.yml ]] && \
[[ "$file" != *composer* ]]; then
echo "'$file' is not an ignored file."
run_plugin_update="true"
Expand Down

0 comments on commit 8bcbd6c

Please sign in to comment.