repo: use correct commit sha

This commit is contained in:
Thomas Hobson 2021-03-14 15:23:36 +13:00
parent 5c59400093
commit d9cacd2677
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
1 changed files with 3 additions and 1 deletions

View File

@ -20,7 +20,9 @@ do
echo "Running in CI mode, --no-build, --no-server" echo "Running in CI mode, --no-build, --no-server"
BUILD=0 BUILD=0
SERVER=0 SERVER=0
PACKAGES=$(git diff-tree --no-commit-id --name-only -r $1 | awk -F/ '{ print $2 "-" $3 }' | sort -u) SHA=$2
echo "Commit Sha: $SHA"
PACKAGES=$(git diff-tree --no-commit-id --name-only -r $SHA | awk -F/ '{ print $2 "-" $3 }' | sort -u)
echo "Building packages: $PACKAGES" echo "Building packages: $PACKAGES"
for package in "$PACKAGES"; do for package in "$PACKAGES"; do
make -j16 $package.pkg.tar.gz make -j16 $package.pkg.tar.gz