From 592380a50cbe8ccc2eee3fabf51d7c4c4280f2e7 Mon Sep 17 00:00:00 2001 From: Avgustin Marinov Date: Thu, 19 Jun 2025 14:08:48 +0300 Subject: [PATCH] Fix indent in release workflow (#2477) Signed-off-by: Avgustin Marinov --- .github/workflows/license-scan.yml | 2 -- .github/workflows/release.yml | 14 +++++--------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/workflows/license-scan.yml b/.github/workflows/license-scan.yml index 945a524c1..cbc50f7c0 100644 --- a/.github/workflows/license-scan.yml +++ b/.github/workflows/license-scan.yml @@ -50,8 +50,6 @@ 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/release.yml b/.github/workflows/release.yml index 7b3663398..0aa65b456 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -72,8 +72,6 @@ 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 @@ -102,12 +100,10 @@ jobs: MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} - name: Tag release run: | - if [ "${REVISION}" != "0-SNAPSHOT" ]; then - git config --local user.name "github-actions[bot]" - git config --local user.email "github-actions[bot]@users.noreply.github.com" - git tag -a ${REVISION} -m "Release version ${REVISION}" && git push origin ${REVISION} - git config --local --unset user.name - git config --local --unset user.email - fi + if [ "${REVISION}" != "0-SNAPSHOT" ]; then + git config --local user.name "github-actions[bot]" + git config --local user.email "github-actions[bot]@users.noreply.github.com" + git tag -a ${REVISION} -m "Release version ${REVISION}" && git push origin ${REVISION} + fi env: REVISION: ${{ github.event.inputs.revision }}