File tree 1 file changed +15
-3
lines changed
1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -17,19 +17,31 @@ jobs:
17
17
build :
18
18
19
19
runs-on : ubuntu-latest
20
+ env :
21
+ PARENT_BRANCH : ${{ github.ref_name == 'master' && 'main' || github.ref_name }}
20
22
21
23
steps :
22
- - uses : actions/checkout@v2
24
+ - uses : actions/checkout@v4
23
25
- name : Set up JDK 17
24
- uses : actions/setup-java@v2
26
+ uses : actions/setup-java@v4
25
27
with :
26
28
java-version : ' 17'
27
29
distribution : ' temurin'
28
- - uses : actions/cache@v1
30
+ - uses : actions/cache@v4
29
31
with :
30
32
path : ~/.m2/repository
31
33
key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
32
34
restore-keys : |
33
35
${{ runner.os }}-maven-
36
+ - name : Checkout fess-parent
37
+ uses : actions/checkout@v4
38
+ with :
39
+ repository : codelibs/fess-parent
40
+ ref : ${{ env.PARENT_BRANCH }}
41
+ path : fess-parent
42
+ - name : Install fess-parent
43
+ run : |
44
+ cd fess-parent
45
+ mvn install
34
46
- name : Build with Maven
35
47
run : mvn -B package --file pom.xml
You can’t perform that action at this time.
0 commit comments