File tree Expand file tree Collapse file tree 2 files changed +19
-4
lines changed Expand file tree Collapse file tree 2 files changed +19
-4
lines changed Original file line number Diff line number Diff line change 22 - SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
33 - SPDX-License-Identifier: AGPL-3.0-or-later
44-->
5+ # 1.13.0 - 20 Feb 2025
6+
7+ - Support for Nextcloud 31
8+
59# 1.12.0 - 20 Aug 2024
610
711- Support for Nextcloud 30
Original file line number Diff line number Diff line change 88
99# Use version from changelog
1010# version=$(head -n1 CHANGELOG.md|cut -d"v" -f2);
11- version=$1
12- echo " Releasing version $version " ;
11+ version=$( grep ' ^# ' CHANGELOG.md| head -n1| cut -d' ' -f2| cut -d' ' -f1) ;
12+ # version=$1
13+ # The target branch, defaults to the current branch
14+ target=${2:- $(git branch --show-current)}
15+
16+ if [ $( git branch --show-current) != $target ]; then
17+ if ! git switch $target > /dev/null; then
18+ echo " Target branch does not exist, please enter a valid branch name"
19+ exit 1
20+ fi
21+ fi
22+
23+ echo " Releasing version $version on branch $target " ;
1324
1425# Ask for confirmation
1526read -r -p " Are you sure? [y/N] " input
@@ -35,10 +46,10 @@ case $input in
3546 [yY][eE][sS]|[yY])
3647 echo " You say Yes"
3748 # Bump version in info.xml
38- sed -i -E " s|^\t <version>.+</version>|\t <version>$version </version>|" appinfo/info.xml
49+ sed -i -E " s|^ <version>.+</version>| <version>$version </version>|" appinfo/info.xml
3950
4051 # Add changed files to git
41- # git add CHANGELOG.md
52+ git add CHANGELOG.md
4253 git add appinfo/info.xml
4354
4455 # Bump npm version, commit and tag
You can’t perform that action at this time.
0 commit comments