mirror of
https://github.com/aljazceru/plugins.git
synced 2026-01-01 04:14:21 +01:00
Fix logic in Ci workflow main
This commit is contained in:
6
.github/workflows/main.yml
vendored
6
.github/workflows/main.yml
vendored
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user