Skip to content

Commit 55300f8

Browse files
create trigger-release.yml
1 parent fa730e6 commit 55300f8

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Trigger release
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
release-version:
6+
description: Release version
7+
default: 1.0.0.Final
8+
required: true
9+
jobs:
10+
release-version:
11+
name: Bump Package Version
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set up JDK 11
16+
# Uses sha for added security since tags can be updated
17+
uses: joschi/setup-jdk@b9cc6eabf7e7e3889766b5cee486f874c9e1bd2d
18+
with:
19+
java-version: 11
20+
- name: Setup git
21+
run: |
22+
git config user.name "Carlos Feria"
23+
git config user.email "<carlosthe19916@gmail.com>"
24+
- name: Build release
25+
run: |
26+
mvn versions:set -DnewVersion="${{ github.event.inputs.release-version }}"
27+
git add .
28+
git commit -m "Release ${{ github.event.inputs.release-version }}"
29+
git push origin master

0 commit comments

Comments
 (0)