From 6d0bee86752e1c01d4d70f7bf16c7f58ca9a3379 Mon Sep 17 00:00:00 2001 From: Paul Meyer Date: Thu, 2 Jan 2025 14:16:54 +0100 Subject: [PATCH] ci/release: allow setting main ref for testing Some workflows are executed from main branch, which makes the workflow difficult to test. This PR adds the ability to set the ref explicitly so it can be pointed to the same branch when testing the workflow. Signed-off-by: Paul Meyer --- .github/workflows/release.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3cc8965a1..fe21e6e2c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,6 +17,11 @@ on: type: boolean required: false default: false + checkout_main_ref: + description: Checkout this git ref as main branch (some workflows run on this state) + type: string + required: false + default: main env: container_registry: ghcr.io/edgelesssys @@ -130,7 +135,7 @@ jobs: - name: Checkout main uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: - ref: main + ref: ${{ inputs.checkout_main_ref }} path: contrast-main - uses: ./contrast-working/.github/actions/setup_nix with: