-
-
Notifications
You must be signed in to change notification settings - Fork 9
56 lines (48 loc) · 1.28 KB
/
update-version.yml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Update Version Number
on:
workflow_dispatch:
inputs:
branch:
description: 'Branch to use'
type: string
default: 'develop'
milestone:
description: 'Milestone to use as version'
type: string
required: true
workflow_call:
inputs:
branch:
description: 'Branch to use'
type: string
default: 'develop'
milestone:
description: 'Milestone to use as version'
type: string
required: true
jobs:
update_version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: ${{ github.repository }}
ref: ${{ inputs.branch }}
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Update Gradle Version
run: |
echo "Updating to version: ${{inputs.milestone}}"
./gradlew -q version -PnewVersion=${{inputs.milestone}} --settings-file ./settings.gradle
- name: Diff check
run: git diff
- name: Add & Commit
uses: EndBug/[email protected]
with:
add: '.'
default_author: github_actions
message: 'update version to ${{inputs.milestone}}'
push: true