Skip to content

Commit

Permalink
build: Try out of increment version workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriytkach committed Dec 5, 2023
1 parent 63724b6 commit f48c9f2
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/increment-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Increment Version

on:
workflow_dispatch:
inputs:
newVersion:
description: 'New version (e.g., 3.3.0). Leave blank to increment patch version.'
required: false
default: ''

jobs:
version-bump:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Java
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'temurin'

- name: Increment Version
id: version-bump
uses: mathieudutour/github-tag-action@v6.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
default_bump: patch
custom_version: ${{ github.event.inputs.newVersion }}
release_branches: main
dry_run: true

0 comments on commit f48c9f2

Please sign in to comment.