Repository navigation
Expand file tree
/
Copy pathsdk-platform-java-analyze_dependency.yaml
More file actions
70 lines (69 loc) · 2.22 KB
/
Copy pathsdk-platform-java-analyze_dependency.yaml
File metadata and controls
70 lines (69 loc) · 2.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
permissions:
contents: read
name: sdk-platform-java Run dependency analyzer
on:
workflow_dispatch:
inputs:
system:
description: the package management system
required: true
type: choice
default: maven
options:
- maven
name:
description: the name of the dependency
required: true
type: string
version:
description: the version of the dependency
required: true
type: string
env:
BUILD_SUBDIR: sdk-platform-java
jobs:
filter:
runs-on: ubuntu-latest
outputs:
library: ${{ steps.filter.outputs.library }}
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
persist-credentials: false
- uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1
id: filter
with:
filters: |
library:
- 'sdk-platform-java/**'
Run-dependency-analyzer:
needs: filter
if: ${{ needs.filter.outputs.library == 'true' }}
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
persist-credentials: false
- uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4.8.0
with:
distribution: temurin
java-version: 17
cache: maven
- name: Set up Maven
uses: stCarolas/setup-maven@07fbbe97d97ef44336b7382563d66743297e442f # v4.5
with:
maven-version: 3.8.2
- name: Install dependency analyzer
shell: bash
run: |
mvn clean install -V --batch-mode --no-transfer-progress -DskipTests
working-directory: java-shared-dependencies/dependency-analyzer
- name: Check dependency information
shell: bash
run: |
mvn exec:java -Ddep.system=${GITHUB_EVENT_INPUTS_SYSTEM} -Ddep.name=${GITHUB_EVENT_INPUTS_NAME} -Ddep.version=${GITHUB_EVENT_INPUTS_VERSION}
working-directory: java-shared-dependencies/dependency-analyzer
env:
GITHUB_EVENT_INPUTS_SYSTEM: ${{ github.event.inputs.system }}
GITHUB_EVENT_INPUTS_NAME: ${{ github.event.inputs.name }}
GITHUB_EVENT_INPUTS_VERSION: ${{ github.event.inputs.version }}