feat: provide way to build and attach platforms
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Print an auto-generated nightly version string derived from git history:
|
||||
#
|
||||
# <last-release-tag>+<commits-since>.g<short-sha> e.g., 26.8.0+14.gb1a2c3d4
|
||||
@@ -12,14 +13,15 @@
|
||||
# and never sorts ahead of the release it is based on. Needs full history and
|
||||
# tags (check out with fetch-depth: 0 and fetch-tags: true). Release tags are
|
||||
# matched as N.N.N; the moving `nightly` tag is ignored.
|
||||
|
||||
set -euo pipefail
|
||||
sha="$(git rev-parse --short=8 HEAD)"
|
||||
if desc="$(git describe --tags --long \
|
||||
--match '[0-9]*.[0-9]*.[0-9]*' --exclude nightly 2>/dev/null)"; then
|
||||
# desc is <tag>-<n>-g<hash>; the tag itself has no '-', so strip from the right.
|
||||
rest="${desc%-g*}" # <tag>-<n>
|
||||
n="${rest##*-}" # <n>
|
||||
tag="${rest%-*}" # <tag>
|
||||
rest="${desc%-g*}"
|
||||
n="${rest##*-}"
|
||||
tag="${rest%-*}"
|
||||
echo "${tag}+${n}.g${sha}"
|
||||
else
|
||||
n="$(git rev-list --count HEAD)"
|
||||
|
||||
Reference in New Issue
Block a user