Fix bump version CI again #4
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bump version | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build_and_push: | |
runs-on: ubuntu-24.04-arm | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
ref: 'main' | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'liberica' | |
java-version: '21' | |
- name: Bump version | |
run: mvn versions:set -DnewVersion=${{ github.ref_name }} | |
- name: Commit changes | |
run: | | |
git config --global user.name 'CI Bot' | |
git config --global user.email 'ci-bot@users.noreply.github.com' | |
git commit -am "Bump version to ${{ github.ref_name }}" | |
git push |