From 220d6b93e6ad0a73ca55dfdf052c7bab0b7548e1 Mon Sep 17 00:00:00 2001 From: Victor Carlos Erenu Date: Wed, 4 Mar 2026 00:59:04 +0700 Subject: [PATCH] Add workflow dispatch option --- .github/workflows/5_pr_check.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/5_pr_check.yml b/.github/workflows/5_pr_check.yml index bfae45b7..7c86b3e3 100644 --- a/.github/workflows/5_pr_check.yml +++ b/.github/workflows/5_pr_check.yml @@ -2,7 +2,14 @@ name: Wazuh Docker pipeline permissions: contents: read id-token: write -on: [pull_request] +on: + pull_request: + workflow_dispatch: + inputs: + docker_reference: + description: 'Branch or tag to build from' + required: true + type: string jobs: @@ -36,7 +43,7 @@ jobs: secrets: inherit with: image_tag: ${{ needs.prepare-variables.outputs.WAZUH_IMAGE_VERSION }} - docker_reference: ${{ github.head_ref }} + docker_reference: ${{ github.head_ref || inputs.docker_reference }} commit_list: '["latest", "latest", "latest", "latest"]' id: ${{ github.run_id }} dev: true