Allow to pass release ID to generate correct releasenotes links
Change-Id: Idd42a387c35a34dba5da977027d21749a7884f88
This commit is contained in:
@@ -17,12 +17,14 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
if [ -z "$1" ]; then
|
if [ "$#" -ne 2 ]; then
|
||||||
echo "Usage: $0 SERIES"
|
echo "Usage: $0 SERIES RELEASE_ID"
|
||||||
|
echo "Example: $0 antelope 2023.1"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
SERIES="$1"
|
SERIES="$1"
|
||||||
|
RELEASE_ID="$2"
|
||||||
|
|
||||||
# Set up and activate the virtualenv that contains the
|
# Set up and activate the virtualenv that contains the
|
||||||
# edit-deliverable command.
|
# edit-deliverable command.
|
||||||
@@ -49,7 +51,7 @@ for filename in deliverables/$SERIES/*.yaml; do
|
|||||||
echo "no notes at all, skipping"
|
echo "no notes at all, skipping"
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
series_url="${base}/${SERIES}.html"
|
series_url="${base}/${RELEASE_ID}.html"
|
||||||
if ! url_exists $series_url; then
|
if ! url_exists $series_url; then
|
||||||
echo "no release notes page at $series_url"
|
echo "no release notes page at $series_url"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user