Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[chore] fixes intendation issues in yaml file #9668

Merged
merged 1 commit into from
Mar 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 22 additions & 21 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,29 +24,30 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Validate version format
run: |
validate_beta_version() {
local regex_pattern_beta='^[0-9]+\.[0-9]+\.[0-9]+$'
if [[ ! "$1" =~ $regex_pattern_beta ]]; then
echo "Invalid $2 version format. For beta, it can be 0.1.0 or higher"
exit 1
fi
}
- name: Validate version format
run: |
validate_beta_version() {
local regex_pattern_beta='^[0-9]+\.[0-9]+\.[0-9]+$'
if [[ ! "$1" =~ $regex_pattern_beta ]]; then
echo "Invalid $2 version format. For beta, it can be 0.1.0 or higher"
exit 1
fi
}

validate_stable_version() {
local regex_pattern_stable='^[1-9][0-9]*\.[0-9]+\.[0-9]+$'
if [[ ! "$1" =~ $regex_pattern_stable ]]; then
echo "Invalid stable version format for $2. Major version must be greater than 1."
exit 1
fi
}
validate_stable_version() {
local regex_pattern_stable='^[1-9][0-9]*\.[0-9]+\.[0-9]+$'
if [[ ! "$1" =~ $regex_pattern_stable ]]; then
echo "Invalid stable version format for $2. Major version must be greater than 1."
exit 1
fi
}

validate_beta_version "${{ inputs.candidate-beta }}" "candidate-beta"
validate_beta_version "${{ inputs.current-beta }}" "current-beta"
validate_stable_version "${{ inputs.candidate-stable }}" "candidate-stable"
validate_stable_version "${{ inputs.current-stable }}" "current-stable"
shell: bash

validate_beta_version "${{ inputs.candidate-beta }}" "candidate-beta"
validate_beta_version "${{ inputs.current-beta }}" "current-beta"
validate_stable_version "${{ inputs.candidate-stable }}" "candidate-stable"
validate_stable_version "${{ inputs.current-stable }}" "current-stable"
shell: bash
# Releasing opentelemetry-collector
prepare-release:
needs:
Expand Down
Loading