diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml new file mode 100644 index 000000000..a7faffcb1 --- /dev/null +++ b/.github/workflows/bump-version.yml @@ -0,0 +1,29 @@ +# .github/workflows/bump-version.yml +name: Bump Version + +# Allows manual trigger with a newVersion input. +on: + workflow_dispatch: + inputs: + newVersion: + description: 'New version to set' + required: true + default: '1.0.1' + +jobs: + bump-version: + runs-on: ubuntu-latest + steps: + # Step 1: Check out the repo. + - name: Checkout code + uses: actions/checkout@v3 + + # Step 2: Use Maven Versions Plugin to update the version across all modules. + - name: Set Maven version + run: mvn versions:set -DnewVersion=${{ github.event.inputs.newVersion }} -DprocessAllModules=true + + # Step 3: Commit the changes using a GitHub Action. + - name: Commit version bump changes + uses: EndBug/add-and-commit@v9 + with: + message: 'Bump version to ${{ github.event.inputs.newVersion }}' \ No newline at end of file diff --git a/pom.xml b/pom.xml index 52b760951..7b53ae7d8 100644 --- a/pom.xml +++ b/pom.xml @@ -1315,6 +1315,11 @@ + + org.codehaus.mojo + versions-maven-plugin + 2.18.0 + org.jetbrains.kotlin kotlin-maven-plugin