Merge pull request #1067 from fracting/avoid-build-package-repeat

Continuous Integration: Avoid building a package repeatly if it was touched by multiple commits in a pull request.
This commit is contained in:
David Macek
2016-02-11 16:02:48 +01:00

View File

@@ -14,7 +14,7 @@ git config --global user.name 'MSYS2 Continuous Integration'
# Recipes
cd "$(dirname "$0")"
files=($(git show --pretty=format: --name-only $(git log -1 --pretty=format:%P | cut -d' ' -f1)..HEAD))
files=($(git show --pretty=format: --name-only $(git log -1 --pretty=format:%P | cut -d' ' -f1)..HEAD | sort -u))
for file in "${files[@]}"; do
[[ "${file}" = */PKGBUILD ]] && recipes+=("${file}")
done