From edbeaf2df445a1037041b93edaa6367934ef4e3a Mon Sep 17 00:00:00 2001 From: Raul Del Pozo Moreno Date: Thu, 16 May 2024 20:24:46 +0200 Subject: [PATCH 1/3] Added id input --- .github/workflows/build_wazuh_dashboard_with_plugins.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_wazuh_dashboard_with_plugins.yml b/.github/workflows/build_wazuh_dashboard_with_plugins.yml index 123df69c1ba9..75ad52fb397c 100644 --- a/.github/workflows/build_wazuh_dashboard_with_plugins.yml +++ b/.github/workflows/build_wazuh_dashboard_with_plugins.yml @@ -1,4 +1,4 @@ -name: Build packages +name: Build packages ${{ inputs.id }} on: workflow_dispatch: @@ -44,6 +44,10 @@ on: description: 'Generate package checksum' required: true default: false + id: + description: "ID used to identify the workflow uniquely." + type: string + required: false jobs: validate-inputs: From dbba2bb0b4b4ffa7138ee61b8663249a79f27538 Mon Sep 17 00:00:00 2001 From: Raul Del Pozo Moreno Date: Thu, 16 May 2024 20:40:27 +0200 Subject: [PATCH 2/3] Added workflow_call --- .../build_wazuh_dashboard_with_plugins.yml | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/.github/workflows/build_wazuh_dashboard_with_plugins.yml b/.github/workflows/build_wazuh_dashboard_with_plugins.yml index 75ad52fb397c..9a9c7a9fbf3e 100644 --- a/.github/workflows/build_wazuh_dashboard_with_plugins.yml +++ b/.github/workflows/build_wazuh_dashboard_with_plugins.yml @@ -49,6 +49,40 @@ on: type: string required: false + workflow_call: + inputs: + system: + type: string + required: true + default: 'deb' + architecture: + type: string + required: true + default: amd64 + revision: + type: string + required: true + default: '0' + reference_security_plugins: + type: string + required: true + default: 'master' + reference_wazuh_plugins: + type: string + required: true + default: 'master' + is_stage: + type: boolean + required: true + default: false + checksum: + type: boolean + required: true + default: false + id: + type: string + required: false + jobs: validate-inputs: runs-on: ubuntu-latest From 23a28b8a2fe4c8388e2b635b52d8ae46780fd2e4 Mon Sep 17 00:00:00 2001 From: Raul Del Pozo Moreno Date: Thu, 16 May 2024 20:44:48 +0200 Subject: [PATCH 3/3] Changed name to run-name --- .github/workflows/build_wazuh_dashboard_with_plugins.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_wazuh_dashboard_with_plugins.yml b/.github/workflows/build_wazuh_dashboard_with_plugins.yml index 9a9c7a9fbf3e..384a56908069 100644 --- a/.github/workflows/build_wazuh_dashboard_with_plugins.yml +++ b/.github/workflows/build_wazuh_dashboard_with_plugins.yml @@ -1,4 +1,4 @@ -name: Build packages ${{ inputs.id }} +run-name: Build packages ${{ inputs.id }} on: workflow_dispatch: