Skip to content

Commit 577333d

Browse files
committed
bump up to the latest actions
1 parent bf24bf3 commit 577333d

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/maven.yml

+15-3
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,31 @@ jobs:
1717
build:
1818

1919
runs-on: ubuntu-latest
20+
env:
21+
PARENT_BRANCH: ${{ github.ref_name == 'master' && 'main' || github.ref_name }}
2022

2123
steps:
22-
- uses: actions/checkout@v2
24+
- uses: actions/checkout@v4
2325
- name: Set up JDK 17
24-
uses: actions/setup-java@v2
26+
uses: actions/setup-java@v4
2527
with:
2628
java-version: '17'
2729
distribution: 'temurin'
28-
- uses: actions/cache@v1
30+
- uses: actions/cache@v4
2931
with:
3032
path: ~/.m2/repository
3133
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
3234
restore-keys: |
3335
${{ 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
3446
- name: Build with Maven
3547
run: mvn -B package --file pom.xml

0 commit comments

Comments
 (0)