Fix git config user (#2475)

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
Avgustin Marinov
2025-06-19 13:20:14 +03:00
committed by GitHub
parent b08033814c
commit e3bf3c3016
2 changed files with 2 additions and 34 deletions

View File

@@ -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

View File

@@ -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