github actions: change regexp for packages
Allow dot in package name.
This commit is contained in:
parent
831490387a
commit
d332ec887e
4
.github/workflows/packages.yml
vendored
4
.github/workflows/packages.yml
vendored
@ -79,14 +79,14 @@ jobs:
|
|||||||
# This file does not belong to a package, so ignore it
|
# This file does not belong to a package, so ignore it
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
if [[ $file =~ ^packages/([a-z0-9+-]*)/([a-z0-9+-]*).subpackage.sh$ ]]; then
|
if [[ $file =~ ^packages/([.a-z0-9+-]*)/([.a-z0-9+-]*).subpackage.sh$ ]]; then
|
||||||
# A subpackage was modified, check if it was deleted or just updated
|
# A subpackage was modified, check if it was deleted or just updated
|
||||||
pkg=${BASH_REMATCH[1]}
|
pkg=${BASH_REMATCH[1]}
|
||||||
subpkg=${BASH_REMATCH[2]}
|
subpkg=${BASH_REMATCH[2]}
|
||||||
if [ ! -f "packages/${pkg}/${subpkg}.subpackage.sh" ]; then
|
if [ ! -f "packages/${pkg}/${subpkg}.subpackage.sh" ]; then
|
||||||
echo "$subpkg" >> ./deleted_packages.txt
|
echo "$subpkg" >> ./deleted_packages.txt
|
||||||
fi
|
fi
|
||||||
elif [[ $file =~ ^packages/([a-z0-9+-]*)/.*$ ]]; then
|
elif [[ $file =~ ^packages/([.a-z0-9+-]*)/.*$ ]]; then
|
||||||
# package, check if it was deleted or updated
|
# package, check if it was deleted or updated
|
||||||
pkg=${BASH_REMATCH[1]}
|
pkg=${BASH_REMATCH[1]}
|
||||||
if [ ! -d "packages/${pkg}" ]; then
|
if [ ! -d "packages/${pkg}" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user