Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Trigger release 1.1.3 #165

Merged
merged 2 commits into from
Jan 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/project.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
release:
current-version: 1.1.2
next-version: 1.1.3-SNAPSHOT
current-version: 1.1.3
next-version: 1.1.4-SNAPSHOT
35 changes: 35 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/bin/bash
#
# Copyright (c) 2020 CQ Maven Plugin
# project contributors as indicated by the @author tags.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# A script for editting .github/project.yml file, committing the changes and pushing the brach to upstream

set -x
set -e

releaseVersion="$1"
nextVersion="$2"

topicBranch=trigger-release-$releaseVersion
git checkout -b $topicBranch

sed -i -e 's| current-version:.*| current-version: '$releaseVersion'|' .github/project.yml
sed -i -e 's| next-version:.*| next-version: '$nextVersion'|' .github/project.yml

git add -A
git commit -m "Trigger release $releaseVersion"
git push upstream $topicBranch
Loading