-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
62fedc1
commit 220b7c8
Showing
2 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
if [ $# -lt 2 ]; then | ||
echo "not enough arguments" | ||
exit 1 | ||
elif [ $# -gt 2 ]; then | ||
echo "too many arguments" | ||
exit 1 | ||
fi | ||
|
||
echo "bump version from $1 to $2" | ||
|
||
# change version in galaxy.yml | ||
sed -i "s/sonar.projectVersion=$1/sonar.projectVersion=$2/1" sonar-project.properties | ||
|
||
# push new version to scm | ||
git add . | ||
git commit -m "chore(dev): bump version to $2" | ||
git tag $2 |