Skip to content

Commit 83c859d

Browse files
committed
Dynamically checkout and install fess-parent based on current branch in CI
1 parent ae80490 commit 83c859d

File tree

2 files changed

+12
-96
lines changed

2 files changed

+12
-96
lines changed

.github/workflows/codeql.yml

-96
This file was deleted.

.github/workflows/maven.yml

+12
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ on:
1717
jobs:
1818
build:
1919
runs-on: macos-14
20+
env:
21+
PARENT_BRANCH: ${{ github.ref_name == 'master' && 'main' || github.ref_name }}
2022
timeout-minutes: 15
2123
steps:
2224
- uses: actions/checkout@v4
@@ -31,6 +33,16 @@ jobs:
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 -Dgpg.skip=true
3446
- name: Download Plugins with Maven
3547
run: mvn -B antrun:run --file pom.xml
3648
- name: Build with Maven

0 commit comments

Comments
 (0)