-
-
Notifications
You must be signed in to change notification settings - Fork 112
37 lines (30 loc) · 1.4 KB
/
update-version.yml
File metadata and controls
37 lines (30 loc) · 1.4 KB
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
name: Update Version
on:
workflow_dispatch:
inputs:
new_version:
description: 'New version'
required: true
jobs:
update-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Update version of Maven plugin sub-project
working-directory: plugins/maven/graphql-java-codegen-maven-plugin
run: mvn versions:set -DnewVersion="${{ github.event.inputs.new_version }}" -DgenerateBackupPoms=false
- name: Update version of Maven example client sub-project
working-directory: plugins/maven/example-client
run: mvn versions:set -DnewVersion="${{ github.event.inputs.new_version }}" -DgenerateBackupPoms=false
- name: Update version of Maven example server sub-project
working-directory: plugins/maven/example-server
run: mvn versions:set -DnewVersion="${{ github.event.inputs.new_version }}" -DgenerateBackupPoms=false
- name: Update versions of all Gradle/SBT sub-projects
run: scripts/update-release-version-in-build-files.sh ${{ github.event.inputs.new_version }}
- name: Commit and push a new version
run: |
git config --global user.name 'Bogdan Kobylynskyi'
git config --global user.email 'kobylynskyi@users.noreply.github.com'
git commit -am "Bump version to ${{ github.event.inputs.new_version }}"
git push
git push --tags