File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
- set -euox pipefail
2
+ set -euo pipefail
3
3
4
4
# 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.
6
7
7
8
# Check if yq is installed
8
9
if ! command -v yq & > /dev/null; then
@@ -18,9 +19,9 @@ if [ -z "$1" ]; then
18
19
exit 1
19
20
fi
20
21
21
- # Validate the version format (major.minor.patch )
22
+ # Validate the version format (major.minor)
22
23
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."
24
25
exit 1
25
26
fi
26
27
@@ -76,7 +77,8 @@ docs_branch="release/$docs_version"
76
77
operator_branch=" release-$docs_version "
77
78
insert_position=1
78
79
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" )
80
82
81
83
# Loop through each playbook file
82
84
for yaml_file in " ${playbook_files[@]} " ; do
You can’t perform that action at this time.
0 commit comments