File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
prepare-for-a-maven-lifecycle Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : " Prepare for running a Maven lifecycle"
2
+ description : " Prepares to run a Maven lifecycle by cloning the repo and its dependencies and installing OpenJDK and Maven"
3
+
4
+ inputs :
5
+ token :
6
+ default : ${{ github.token }}
7
+ description : " A GitHub token to use for cloning repositories"
8
+ project-deps :
9
+ required : false
10
+ description : " Path to a file with project dependencies to clone. If not provided, the action will only clone the current repository."
11
+
12
+ runs :
13
+ using : " composite"
14
+ steps :
15
+ - name : Set repository path variable
16
+ run : echo "CHECKOUT_PATH=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
17
+ shell : bash
18
+
19
+ - uses : actions/checkout@v4
20
+ with :
21
+ path : ${{ env.CHECKOUT_PATH || '.' }}
22
+
23
+ - uses : dbeaver/github-actions/clone-repositories@devel
24
+ if : ${{ inputs.project-deps != null }}
25
+ with :
26
+ project_deps_path : ${{ inputs.project-deps }}
27
+ token : ${{ inputs.token }}
28
+
29
+ - uses : dbeaver/github-actions/install-maven@devel
30
+
31
+ - uses : actions/setup-java@v4
32
+ with :
33
+ distribution : " temurin"
34
+ java-version : " 21"
35
+ cache : maven
You can’t perform that action at this time.
0 commit comments