From e29784cffc672fd2a0127c3f75d6c504052a2866 Mon Sep 17 00:00:00 2001 From: Zubin Duggal Date: Thu, 25 Apr 2024 15:10:13 +0530 Subject: [PATCH] Git config stuff --- .github/workflows/release.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 8ad29d6af8e..90610f33a2e 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -168,6 +168,12 @@ jobs: echo "ID=linux" >> /etc/os-release echo "PRETTY_NAME=Linux" >> /etc/os-release + - name: git config + run: | + git config --global --get-all safe.directory | grep '^\*$' || git config --global --add safe.directory "*" + git config --global --add safe.directory $PWD + shell: bash + - name: Checkout code run: | git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY . @@ -227,6 +233,7 @@ jobs: - name: git config run: | git config --global --get-all safe.directory | grep '^\*$' || git config --global --add safe.directory "*" + git config --global --add safe.directory $PWD shell: bash - name: Checkout code @@ -490,6 +497,12 @@ jobs: echo "ID=linux" >> /etc/os-release echo "PRETTY_NAME=Linux" >> /etc/os-release + - name: git config + run: | + git config --global --get-all safe.directory | grep '^\*$' || git config --global --add safe.directory "*" + git config --global --add safe.directory $PWD + shell: bash + - name: Checkout code run: | git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY . @@ -544,6 +557,7 @@ jobs: - name: git config run: | git config --global --get-all safe.directory | grep '^\*$' || git config --global --add safe.directory "*" + git config --global --add safe.directory $PWD shell: bash - name: Checkout code @@ -793,6 +807,11 @@ jobs: echo "ID=linux" >> /etc/os-release echo "PRETTY_NAME=Linux" >> /etc/os-release + - name: git config + run: | + git config --global --get-all safe.directory | grep '^\*$' || git config --global --add safe.directory "*" + git config --global --add safe.directory $PWD + shell: bash - name: Checkout code run: | git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY . @@ -830,6 +849,7 @@ jobs: - name: git config run: | git config --global --get-all safe.directory | grep '^\*$' || git config --global --add safe.directory "*" + git config --global --add safe.directory $PWD shell: bash - name: Checkout code