From e3bf3c301641dd22b792e3b8e5a11f57cd256233 Mon Sep 17 00:00:00 2001 From: Avgustin Marinov Date: Thu, 19 Jun 2025 13:20:14 +0300 Subject: [PATCH] Fix git config user (#2475) Signed-off-by: Avgustin Marinov --- .github/workflows/release.yml | 2 ++ .github/workflows/unset_git_config.yml | 34 -------------------------- 2 files changed, 2 insertions(+), 34 deletions(-) delete mode 100644 .github/workflows/unset_git_config.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 084aaaf85..7b3663398 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -72,6 +72,8 @@ jobs: git config --local user.name "github-actions[bot]" git config --local user.email "github-actions[bot]@users.noreply.github.com" git add ${DEPENDENCY_FILE} && git commit -m "[Release] Automated commit of ${DEPENDENCY_FILE} changes" && git push + git config --local --unset user.name + git config --local --unset user.email else echo "Unexpected changes:" git status --short diff --git a/.github/workflows/unset_git_config.yml b/.github/workflows/unset_git_config.yml deleted file mode 100644 index 92726d336..000000000 --- a/.github/workflows/unset_git_config.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: Unset Git Config - -on: - # enable running the workflow manually - workflow_dispatch: - -jobs: - unset-git-config: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - - name: Set up JDK & Maven Central credentials - uses: actions/setup-java@v4 - with: - distribution: 'temurin' - java-version: 21 - cache: 'maven' - - - name: Cache local Maven repository - uses: actions/cache@v4 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- - - - name: Check dependency licenses with dash tool - run: | - git config --local --unset user.name - git config --local --unset user.email - git config --global --unset user.name - git config --global --unset user.email