From 318794b7675a8546c6d0069e282c2c96937cb990 Mon Sep 17 00:00:00 2001 From: Guillaume Berche Date: Tue, 2 Jan 2024 17:32:20 +0100 Subject: [PATCH] create-release-branches.bash --- create-release-branches.bash | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 create-release-branches.bash diff --git a/create-release-branches.bash b/create-release-branches.bash new file mode 100644 index 00000000..5d1d2a06 --- /dev/null +++ b/create-release-branches.bash @@ -0,0 +1,14 @@ +#!/bin/bash +set -x +set -e # exit on non-zero status + +for v in 1.25 1.26 1.27 1.28 1.29 1.30 1.31 ; do + BRANCH_NAME="release-${v}" + git co -b $BRANCH_NAME; + sed -i.orig "s/tag: v.*/tag: v$v/g" vendir.yml + diff vendir.yml vendir.yml.orig + git add vendir.yml + git commit -m "set up release for version $v" + git push --set-upstream origin $BRANCH_NAME + git co master +done