We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4098b5 commit c2e9032Copy full SHA for c2e9032
create_tag.sh
@@ -0,0 +1,13 @@
1
+# /bin/bash
2
+version=$1
3
+# Regex pattern for the valid strings
4
+regex="^v([0-9]+)\.([0-9]+)\.([0-9]+)(-(alpha|beta|rc)\.([0-9]+))?$"
5
+
6
+if [[ $version =~ $regex ]]; then
7
+ echo "Creating tag with: " $1
8
+ git tag -a -s -u GPG_KEY_ID -m 'rabbitmq-amqp-dotnet-client $1' '$1' && git push && git push --tags
9
+ echo "Tag created: " $1
10
+else
11
+ echo "Invalid version" $1
12
+fi
13
0 commit comments