From f5d7168e757a53462d21f81379fb43970285c4e9 Mon Sep 17 00:00:00 2001 From: D072950 Date: Tue, 26 May 2026 01:21:53 +0200 Subject: [PATCH] feat(e2e): add optional ref input to e2e action MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Allows callers to pin the checkout to a specific commit SHA, branch, or tag. When omitted (empty string), actions/checkout falls back to the default branch — preserving existing nightly behaviour. Required for comment-driven e2e runs triggered via issue_comment, where the workflow runs from main but needs to test the PR's code. Signed-off-by: D072950 --- workflows/e2e/action.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/workflows/e2e/action.yaml b/workflows/e2e/action.yaml index 3df09da..f94e08f 100644 --- a/workflows/e2e/action.yaml +++ b/workflows/e2e/action.yaml @@ -26,6 +26,10 @@ inputs: scenario: description: "The E2E scenario to run" required: true + ref: + description: "The ref to checkout (commit SHA, branch, or tag). Defaults to the repository default branch." + required: false + default: "" outputs: result: description: "The path to the E2E test results" @@ -39,6 +43,7 @@ runs: uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 with: repository: cloudoperators/greenhouse + ref: ${{ inputs.ref }} - name: Set up Go uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5