From bdb370bf4e82432cdc6cbc72950063b5732e769e Mon Sep 17 00:00:00 2001 From: "Zaiming (Stone) Shi" Date: Fri, 1 Jul 2022 06:17:51 +0200 Subject: [PATCH] ci: ensure git safe dir for cross-build prepare stage --- .github/workflows/build_packages.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build_packages.yaml b/.github/workflows/build_packages.yaml index e7571d154..ae4da5557 100644 --- a/.github/workflows/build_packages.yaml +++ b/.github/workflows/build_packages.yaml @@ -23,6 +23,7 @@ on: jobs: prepare: runs-on: ubuntu-20.04 + container: ghcr.io/emqx/emqx-builder/5.0-17:1.13.4-24.2.1-1-ubuntu20.04 outputs: BUILD_PROFILE: ${{ steps.get_profile.outputs.BUILD_PROFILE }} IS_EXACT_TAG: ${{ steps.get_profile.outputs.IS_EXACT_TAG }} @@ -38,6 +39,7 @@ jobs: id: get_profile run: | cd source + git config --global --add safe.directory "$(pwd)" tag=${{ github.ref }} if git describe --tags --match "[v|e]*" --exact; then echo "This is an exact git tag, will publish release"