File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Creat New Release Tag
2+
3+ on : workflow_dispatch
4+
5+ permissions :
6+ contents : write
7+
8+ jobs :
9+ create_release_tag :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v4
13+ - name : Set up Maven Central Repository
14+ uses : actions/setup-java@v3
15+ with :
16+ java-version : ' 17'
17+ distribution : ' temurin'
18+ cache : ' maven'
19+
20+ - name : Set Release Version
21+ id : create_release
22+ run : |
23+ mvn versions:set versions:commit -DremoveSnapshot
24+ echo "version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_OUTPUT
25+
26+ - uses : stefanzweifel/git-auto-commit-action@v5
27+ with :
28+ commit_message : " Prepare release: github-api-${{ steps.new_release.outputs.version }}"
29+ tagging_message : ' github-api-${{ steps.new_release.outputs.version }}'
30+
31+ - name : Increment Snapshot Version
32+ id : next_snapshot
33+ run : |
34+ mvn versions:set versions:commit -DnextSnapshot
35+
36+ - uses : stefanzweifel/git-auto-commit-action@v5
37+ with :
38+ commit_message : " Prepare for next development iteration"
You can’t perform that action at this time.
0 commit comments