summaryrefslogtreecommitdiff
path: root/mut/neovim
diff options
context:
space:
mode:
authorMike Vink <ivi@vinkies.net>2024-06-25 16:49:32 +0200
committerMike Vink <ivi@vinkies.net>2024-06-25 16:51:29 +0200
commit5f19ec51f8e0305ce08ff7a1c55c75e84979a3d2 (patch)
tree143c7696fde381a8e7522f15c47b15bc7dc2e505 /mut/neovim
parentc7cb36d521a8d2b9a2f87cc02ed5f8ba9df39656 (diff)
init
Diffstat (limited to 'mut/neovim')
-rw-r--r--mut/neovim/fnl/conf/test.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/mut/neovim/fnl/conf/test.sh b/mut/neovim/fnl/conf/test.sh
new file mode 100644
index 0000000..6d94847
--- /dev/null
+++ b/mut/neovim/fnl/conf/test.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+echo "##vso[task.setvariable variable=version;isOutput=true]$VERSION";
+cd "$CHART_CONTEXT_PATH" || { echo "Coulnd't find ./destination"; ls; exit 1; }
+case "$BUILD_SOURCEBRANCH" in
+ refs/heads/*)
+ echo "Seting version to sha prerelease $VERSION"
+ yq -i '
+ .appVersion = ("'"$VERSION"'" | . style="double")
+ | .version = "0.0.0-'"$VERSION"'"
+ ' Chart.yaml
+ ;;
+ refs/tags/*)
+ echo "Seting version to tag $VERSION"
+ yq -i '
+ .appVersion = ("'"$VERSION"'" | . style="double")
+ | .version = "'"$VERSION"'"
+ ' Chart.yaml
+ ;;
+esac
+cd ..