We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6467c6d commit 7f5b62aCopy full SHA for 7f5b62a
scripts/tag.sh
@@ -0,0 +1,10 @@
1
+# Get the latest tag reachable from the previous commit
2
+TAG=$(git describe --tags --abbrev=0 HEAD^ 2>/dev/null)
3
+
4
+if [ -n "$TAG" ]; then
5
+ sed -i "s/public const VERSION = .*/public const VERSION = '$TAG';/" src/Application.php
6
+ git add src/Application.php
7
+ echo "Version set to $TAG"
8
+else
9
+ echo "No previous tag found."
10
+fi
0 commit comments