mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-10-18 19:10:30 +08:00
The team decided to use `releases/*.*.*` for the naming scheme of release tags. This change needs to be reflected in the `build` tooling as well.
10 lines
259 B
Bash
Executable File
10 lines
259 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if ! version="$(git describe --match='releases/*' --candidates=1 2>/dev/null)"; then
|
|
echo "fatal: no version tag found by 'git describe'" >&2 ; exit 1
|
|
fi
|
|
# Remove the `releases/` prefix from version.
|
|
version=${version#releases/}
|
|
|
|
echo "$version"
|