fork of https://github.com/sourcegraph/zoekt
1#!/usr/bin/env bash
2
3set -euo pipefail
4
5# This is the pseudo-version that go.mod uses. We use the same version string
6# so that downstream consumers can line up image versions with module versions.
7version="$(TZ=UTC git --no-pager show \
8 --quiet \
9 --abbrev=12 \
10 --date='format-local:%Y%m%d%H%M%S' \
11 --format='0.0.0-%cd-%h')"
12
13printf 'value=%s\n' "$version" >>"$GITHUB_OUTPUT"