Fix logic in Ci workflow main

This commit is contained in:
sip21
2024-03-07 09:45:17 -06:00
committed by Christian Decker
parent 57a2925e31
commit cef4be1650

View File

@@ -109,13 +109,15 @@ jobs:
git remote add other-remote https://github.com/$source_repo
git fetch other-remote
head_ref="other-remote/${{ github.head_ref }}"
else
git checkout ${{ github.head_ref }}
fi
# Restore original state
git checkout ${{ github.head_ref }}
# Collect the plugins that have changed.
plugin_dirs=$(git diff --name-only ${{ github.base_ref }} $head_ref \
| cut -d '/' -f1 \
| uniq \
| grep -v '^\.' \
| grep -v 'archived' \
| xargs -I {} find {} -maxdepth 0 -type d)