parent
76398d6f5a
commit
647da5c4d9
1 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue