Merge pull request #10640 from id/0508-ci-ensure-git-safe-dir

ci: ensure git safe dir in build_packages
This commit is contained in:
Ivan Dyachkov 2023-05-08 20:13:10 +02:00 committed by GitHub
commit a559252bc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -35,6 +35,7 @@ jobs:
- name: Get profile to build - name: Get profile to build
id: get_profile id: get_profile
run: | run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
tag=${{ github.ref }} tag=${{ github.ref }}
if git describe --tags --match "[v|e]*" --exact; then if git describe --tags --match "[v|e]*" --exact; then
echo "WARN: This is an exact git tag, will publish release" echo "WARN: This is an exact git tag, will publish release"
@ -229,7 +230,7 @@ jobs:
ARCH: ${{ matrix.arch }} ARCH: ${{ matrix.arch }}
run: | run: |
set -eu set -eu
git config --global --add safe.directory "/__w/emqx/emqx" git config --global --add safe.directory "$GITHUB_WORKSPACE"
# Align path for CMake caches # Align path for CMake caches
if [ ! "$PWD" = "/emqx" ]; then if [ ! "$PWD" = "/emqx" ]; then
ln -s $PWD /emqx ln -s $PWD /emqx

View File

@ -57,6 +57,7 @@ jobs:
ARCH: ${{ matrix.arch }} ARCH: ${{ matrix.arch }}
run: | run: |
set -eu set -eu
git config --global --add safe.directory "$GITHUB_WORKSPACE"
PKGTYPES="tgz pkg" PKGTYPES="tgz pkg"
IS_ELIXIR="no" IS_ELIXIR="no"
for PKGTYPE in ${PKGTYPES}; for PKGTYPE in ${PKGTYPES};