From 2395efb1608cc81409e37b930f5acafa07f79074 Mon Sep 17 00:00:00 2001 From: Microtechno9000 Date: Sat, 9 Nov 2024 16:07:10 +1030 Subject: [PATCH] Github Workflow - Version Resolved issue with git rebase and credentials --- .github/workflows/version_bump.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/version_bump.yml b/.github/workflows/version_bump.yml index e4425eec..12d0797e 100644 --- a/.github/workflows/version_bump.yml +++ b/.github/workflows/version_bump.yml @@ -92,6 +92,11 @@ jobs: echo "PR_TITLE=$PR_TITLE" >> $GITHUB_ENV echo "VERSION_TYPE=$VERSION_TYPE" >> $GITHUB_ENV + - name: Configure Git user + run: | + git config --local user.email "github-actions[bot]@users.noreply.github.com" + git config --local user.name "github-actions[bot]" + - name: Pull latest changes from remote if: env.VERSION_UPDATED == 'false' && env.TITLE_FLAG == 'true' run: | @@ -102,8 +107,6 @@ jobs: run: | echo "$NEW_VERSION" > VERSION git add VERSION - git config --local user.email "github-actions[bot]@users.noreply.github.com" - git config --local user.name "github-actions[bot]" git commit -m "[Automated] Release: ${VERSION_TYPE} - Version from $CURRENT_VERSION to $NEW_VERSION" - name: Push changes