Skip to content

Commit 3ba68e0

Browse files
committed
minor changes
1 parent 2edfe70 commit 3ba68e0

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

scripts/publish-new-version.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#!/usr/bin/env bash
2-
set -euox pipefail
2+
set -euo pipefail
33

44
# This script updates all the playbook files with the new branches for a given version.
5-
# The version should be given as major.minor
5+
# The version should be given as major.minor.
6+
# All the release branches in the operators as well as the docs release branch should already be there.
67

78
# Check if yq is installed
89
if ! command -v yq &> /dev/null; then
@@ -18,9 +19,9 @@ if [ -z "$1" ]; then
1819
exit 1
1920
fi
2021

21-
# Validate the version format (major.minor.patch)
22+
# Validate the version format (major.minor)
2223
if [[ ! "$1" =~ ^[0-9]+\.[0-9]$ ]]; then
23-
echo "Invalid version format. Please use the major.minor.patch format."
24+
echo "Invalid version format. Please use the major.minor format."
2425
exit 1
2526
fi
2627

@@ -76,7 +77,8 @@ docs_branch="release/$docs_version"
7677
operator_branch="release-$docs_version"
7778
insert_position=1
7879

79-
playbook_files=("antora-playbook.yml" "local-antora-playbook.yml")
80+
docs_dir="$(dirname "$0")/.."
81+
playbook_files=("$docs_dir/antora-playbook.yml" "$docs_dir/local-antora-playbook.yml")
8082

8183
# Loop through each playbook file
8284
for yaml_file in "${playbook_files[@]}"; do

0 commit comments

Comments
 (0)