Selaa lähdekoodia

ci: ensure git safe dir

Zaiming (Stone) Shi 2 vuotta sitten
vanhempi
commit
cc518c81b2
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 4 0
      .github/workflows/build_packages.yaml

+ 4 - 0
.github/workflows/build_packages.yaml

@@ -35,6 +35,10 @@ jobs:
       - name: Get profile to build
         id: get_profile
         run: |
+          set -e
+          THISDIR="$(pwd)"
+          echo "Adding $THISDIR as safe dir for git"
+          git config --global --add safe.directory "${THISDIR}"
           tag=${{ github.ref }}
           if git describe --tags --match "[v|e]*" --exact; then
             echo "WARN: This is an exact git tag, will publish release"