Skip to content

Commit

Permalink
Add Github workflow to update project version (#1155)
Browse files Browse the repository at this point in the history
  • Loading branch information
petertrr authored Oct 26, 2023
1 parent 5f84cac commit 8958388
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/bump-versions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: bump-versions
on:
workflow_dispatch:
inputs:
version:
description: The new version
required: true
type: string

jobs:
bump-version:
runs-on: ubuntu-latest
permissions:
contents: write # write for peter-evans/create-pull-request, read for actions/checkout
pull-requests: write # write for peter-evans/create-pull-request
steps:
- uses: actions/checkout@v4
- run: |
mvn versions:set-property -DgenerateBackupPoms=false -Dproperty=revision -DnewVersion=${{ github.event.inputs.version }}
- uses: peter-evans/create-pull-request@v5
with:
author: github-actions[bot] <[email protected]>
commit-message: Prepare next development iteration
title: Prepare next development iteration
branch: bot/bump-project-version
branch-suffix: timestamp

0 comments on commit 8958388

Please sign in to comment.