Skip to content

Commit

Permalink
ci/release: allow setting main ref for testing
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
katexochen committed Jan 2, 2025
1 parent 3e830c4 commit 6d0bee8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 6d0bee8

Please sign in to comment.