mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-07-26 19:22:13 +00:00
Merge pull request #1341 from Stremio/fix-pages-cleanup-root-branches
Some checks are pending
Build / build (push) Waiting to run
Some checks are pending
Build / build (push) Waiting to run
This commit is contained in:
commit
3836d1b37c
1 changed files with 4 additions and 4 deletions
8
.github/workflows/pages_cleanup.yml
vendored
8
.github/workflows/pages_cleanup.yml
vendored
|
|
@ -30,15 +30,15 @@ jobs:
|
|||
continue
|
||||
fi
|
||||
|
||||
keep_parent=false
|
||||
keep_related=false
|
||||
for branch in "${branches[@]}"; do
|
||||
if [[ "$branch" == "$path/"* ]]; then
|
||||
keep_parent=true
|
||||
if [[ "$branch" == "$path/"* || "$path" == "$branch/"* ]]; then
|
||||
keep_related=true
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
if ! $keep_parent; then
|
||||
if ! $keep_related; then
|
||||
echo "Deleting $dir"
|
||||
rm -rf "$dir"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue