From 647da5c4d96b5575a855c2f650b4567bb13ab317 Mon Sep 17 00:00:00 2001 From: miwr Date: Thu, 24 Apr 2025 14:16:44 +0200 Subject: [PATCH] git config --- update-version.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/update-version.sh b/update-version.sh index c5787ed..7946bd1 100755 --- a/update-version.sh +++ b/update-version.sh @@ -35,8 +35,16 @@ echo "🔧 Updating version: $current_version → $new_version" TAG=$(echo "$new_version" | tr '[:upper:]' '[:lower:]') sed -i "s|forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/devfw-cicd/michals-silly-game-backend:.*|forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/devfw-cicd/michals-silly-game-backend:$TAG|" k8/deployment.yaml echo "reference changed to $TAG" -mvn versions:set -DnewVersion="$new_version" +mvn versions:set -DnewVersion="$TAG" mvn versions:commit +git config --local user.email "github-actions[bot]@users.noreply.github.com" +git config --local user.name "GitHub Actions Bot" +git stash +git pull +git stash pop +git add . +git commit -m "Automated update by Forgejo Actions" +git push origin HEAD:${{ github.ref_name }} # Remove unnecessary backup file rm -f pom.xml.versionsBackup