-
-
Notifications
You must be signed in to change notification settings - Fork 19
36 lines (30 loc) · 792 Bytes
/
set-version.yml
File metadata and controls
36 lines (30 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: set-version
on:
workflow_dispatch:
inputs:
version:
description: 'Version to set'
required: true
workflow_call:
inputs:
version:
required: true
type: string
jobs:
set-version:
name: Set Version
permissions:
contents: write
runs-on: ubuntu-24.04
steps:
- name: 'Shared: Checkout repository'
uses: actions/checkout@v6
with:
ref: ${{ github.ref }}
- name: 'Set Version'
run: |
sed -i 's/^maven_version=.*/maven_version='"${{ inputs.version }}"'/g' gradle.properties
- name: 'Commit Version'
uses: stefanzweifel/git-auto-commit-action@v7
with:
commit_message: 'chore(release): bump version to ${{ inputs.version }}'