Skip to content

Commit 6de4ce7

Browse files
authored
[chore] skip stable module check if unset (#10734)
From https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/release.md#releasing-opentelemetry-collector: > If not intending to release stable modules, do not specify a version for Release candidate version stable. `validate-versions` workflow fails on empty version right now, it should instead skip if stable module candidate version is empty.
1 parent fb5b1e6 commit 6de4ce7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/prepare-release.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ jobs:
4444
4545
validate_beta_version "${{ inputs.candidate-beta }}" "candidate-beta"
4646
validate_beta_version "${{ inputs.current-beta }}" "current-beta"
47-
validate_stable_version "${{ inputs.candidate-stable }}" "candidate-stable"
47+
if [[ ! -z "${{ inputs.candidate-stable }}" ]]; then
48+
validate_stable_version "${{ inputs.candidate-stable }}" "candidate-stable"
49+
fi
4850
validate_stable_version "${{ inputs.current-stable }}" "current-stable"
4951
shell: bash
5052

0 commit comments

Comments
 (0)