ci: ensure safe git dir for package build

This commit is contained in:
Zaiming (Stone) Shi 2022-05-25 12:09:24 +02:00
parent 603e1bb3b9
commit fed596c922
2 changed files with 2 additions and 1 deletions

View File

@ -34,6 +34,7 @@ jobs:
shell: bash
working-directory: source
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
if make emqx-ee --dry-run > /dev/null 2>&1; then
echo "::set-output name=profiles::[\"emqx-ee\"]"
else

View File

@ -77,4 +77,4 @@ docker run -i --rm \
--workdir /emqx \
--platform="linux/$ARCH" \
"$BUILDER" \
bash -euc "make ${PROFILE}-${PKGTYPE} && .ci/build_packages/tests.sh $PROFILE $PKGTYPE"
bash -euc "git config --global --add safe.directory /emqx && make ${PROFILE}-${PKGTYPE} && .ci/build_packages/tests.sh $PROFILE $PKGTYPE"