ci: Avoid adding duplicate entries to git config

This commit is contained in:
ieQu1 2022-05-16 10:24:40 +02:00
parent 3524fb6994
commit 12860bf87b
3 changed files with 2 additions and 2 deletions

View File

@ -308,6 +308,7 @@ jobs:
SYSTEM: ${{ matrix.os }}
run: |
set -eu
git config --global --add safe.directory "/__w/emqx/emqx"
# Align path for CMake caches
if [ ! "$PWD" = "/emqx" ]; then
ln -s $PWD /emqx

View File

@ -54,6 +54,7 @@ jobs:
- name: Get deps git refs for cache
id: deps-refs
run: |
git config --global --add safe.directory "/__w/emqx/emqx"
scripts/get-dep-refs.sh
make clean-all
- name: load quicer cache

View File

@ -84,8 +84,6 @@ RELEASE="$(grep -E "define.+${RELEASE_EDITION}" apps/emqx/include/emqx_release.h
git_exact_vsn() {
local tag
## Needed to avoid error in github action
git config --global --add safe.directory "/__w/emqx/emqx"
tag="$(git describe --tags --match "${GIT_TAG_PREFIX}*" --exact 2>/dev/null)"
echo "${tag#[v|e]}"
}