ci: Avoid adding duplicate entries to git config
This commit is contained in:
parent
3524fb6994
commit
12860bf87b
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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]}"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue