CI: update packages.yml

Properly handle cases where we have both updated & deleted packages.
This commit is contained in:
Leonid Pliushch 2020-02-23 13:51:30 +02:00
parent fe1632c3c8
commit d26c673109

View File

@ -75,7 +75,7 @@ jobs:
# Process added or updated packages. Create a list of packages for further processing # Process added or updated packages. Create a list of packages for further processing
# in upload job. # in upload job.
if [ -n "$PACKAGE_NAMES" ]; then if [ -n "$PACKAGE_NAMES" ]; then
./scripts/lint-packages.sh $(echo "$PACKAGE_NAMES" | awk '{ print "./packages/"$0"/build.sh" }') ./scripts/lint-packages.sh $(echo "$PACKAGE_NAMES" | grep -P '^[a-zA-Z0-9]' | awk '{ print "./packages/"$0"/build.sh" }')
./scripts/run-docker.sh ./build-package.sh -a ${{ matrix.target_arch }} -I ${PACKAGE_NAMES} ./scripts/run-docker.sh ./build-package.sh -a ${{ matrix.target_arch }} -I ${PACKAGE_NAMES}
echo "${PACKAGE_NAMES}" > ./built_packages.txt echo "${PACKAGE_NAMES}" > ./built_packages.txt
fi fi