File tree Expand file tree Collapse file tree 3 files changed +20
-4
lines changed Expand file tree Collapse file tree 3 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 49
49
- name : Step 01 - Download the plugin's source code
50
50
uses : actions/checkout@v3
51
51
with :
52
+ repository : wazuh/wazuh-security-dashboards-plugin
52
53
ref : ${{ inputs.reference }}
53
54
path : wazuh-security-plugin
54
55
@@ -74,12 +75,16 @@ jobs:
74
75
yarn config set registry https://registry.yarnpkg.com;
75
76
cd /home/node/kbn/plugins/wazuh-security-plugin && yarn && ${{ inputs.command }};
76
77
'
78
+ - name : Get the plugin version
79
+ run : |
80
+ echo "version=$(jq -r '.wazuh.version' $(pwd)/wazuh-security-plugin/package.json)" >> $GITHUB_ENV
81
+ echo "revision=$(jq -r '.wazuh.revision' $(pwd)/wazuh-security-plugin/package.json)" >> $GITHUB_ENV
77
82
78
83
- name : Step 04 - Upload artifact to GitHub
79
84
if : ${{ inputs.artifact_name && inputs.artifact_path }}
80
85
uses : actions/upload-artifact@v3
81
86
with :
82
- name : ${{ inputs.artifact_name }}
87
+ name : ${{ inputs.artifact_name }}_${{ env.version }}-${{ env.revision }}_${{ inputs.reference }}.zip
83
88
path : ${{ inputs.artifact_path }}
84
89
85
90
- name : Step 05 - Upload coverage results to GitHub
Original file line number Diff line number Diff line change 6
6
name : Manual build
7
7
8
8
on :
9
+ workflow_call :
10
+ inputs :
11
+ reference :
12
+ required : true
13
+ type : string
14
+ description : Source code reference (branch, tag or commit SHA)
15
+ default : 4.9.0
9
16
workflow_dispatch :
10
17
inputs :
11
18
reference :
20
27
name : Build app package
21
28
uses : ./.github/workflows/dev-environment.yml
22
29
with :
23
- reference : ${{ github.event. inputs.reference }}
30
+ reference : ${{ inputs.reference }}
24
31
command : ' yarn build'
25
- artifact_name : ' wazuh-security-dashboards-plugin-${{ github.event.inputs.reference }}.zip '
32
+ artifact_name : ' wazuh-security-dashboards-plugin'
26
33
artifact_path : ' ./wazuh-security-plugin/build'
27
34
secrets : inherit
Original file line number Diff line number Diff line change 6
6
"version" : " 2.19.0" ,
7
7
"templateVersion" : " 2.19.0"
8
8
},
9
+ "wazuh" : {
10
+ "version" : " 4.9.0" ,
11
+ "revision" : " 00"
12
+ },
9
13
"license" : " Apache-2.0" ,
10
14
"homepage" : " https://github.com/opensearch-project/security-dashboards-plugin" ,
11
15
"scripts" : {
59
63
"micromatch" : " ^4.0.8" ,
60
64
"cross-spawn" : " 7.0.5"
61
65
}
62
- }
66
+ }
You can’t perform that action at this time.
0 commit comments