File tree 1 file changed +5
-12
lines changed
1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change 7
7
description : " The branch to checkout when cutting the release."
8
8
required : true
9
9
default : " master"
10
+ currentVersion :
11
+ description : " The current SNAPSHOT version of the branch to cut the release from."
12
+ required : true
10
13
releaseVersion :
11
14
description : " Release version."
12
15
required : true
@@ -48,22 +51,12 @@ jobs:
48
51
git config user.email "[email protected] "
49
52
git config user.name "Infinispan"
50
53
51
- - name : Checkout Infinispan SNAPSHOT
52
- uses : actions/checkout@v2
53
- with :
54
- repository : infinispan/infinispan
55
- path : infinispan
56
-
57
- - name : Compile Infinispan SNAPSHOT
58
- run : mvn -B -V install -s maven-settings.xml -DskipTests=true -am -pl server/tests
59
- working-directory : infinispan
60
-
61
54
- name : Tag release
62
55
run : |
63
- mvn -B -V versions:set -DnewVersion= ${{ github.event.inputs.releaseVersion }} -DprocessAllModules=true versions:commit
56
+ find . -name "pom.xml" | xargs sed -i 's/<version> ${{ github.event.inputs.currentVersion }}<\/version>/<version>${{ github.event.inputs.releaseVersion }}<\/version>/g'
64
57
git commit -a -m "Releasing ${{ github.event.inputs.releaseVersion }}"
65
58
git tag ${{ github.event.inputs.releaseVersion }}
66
- mvn -B -V versions:set -DnewVersion= ${{ github.event.inputs.developmentVersion }} -DprocessAllModules=true versions:commit
59
+ find . -name "pom.xml" | xargs sed -i 's/<version> ${{ github.event.inputs.releaseVersion }}<\/version>/<version>${{ github.event.inputs.developmentVersion }}<\/version>/g'
67
60
git commit -a -m "Next version ${{ github.event.inputs.developmentVersion }}"
68
61
69
62
- name : Push changes
You can’t perform that action at this time.
0 commit comments