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:
commit
a559252bc3
|
@ -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
|
||||||
|
|
|
@ -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};
|
||||||
|
|
Loading…
Reference in New Issue