ci: ensure git safe dir

This commit is contained in:
Zaiming (Stone) Shi 2023-05-08 14:34:19 +02:00
parent 56d8541fae
commit cc518c81b2
1 changed files with 4 additions and 0 deletions

View File

@ -35,6 +35,10 @@ jobs:
- name: Get profile to build - name: Get profile to build
id: get_profile id: get_profile
run: | run: |
set -e
THISDIR="$(pwd)"
echo "Adding $THISDIR as safe dir for git"
git config --global --add safe.directory "${THISDIR}"
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"