Skip to content

Commit 5b90fb8

Browse files
authored
dbeaver/dbeaver-devops#1955 fix gh workflow for the new p2 deps repo (#7)
Co-authored-by: Nikita Akilov <[email protected]>
1 parent a68d5a2 commit 5b90fb8

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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

0 commit comments

Comments
 (0)