prjxray/.github/kokoro/steps/git.sh

28 lines
732 B
Bash
Executable File

#!/bin/bash
set -e
echo
echo "========================================"
echo "Git log"
echo "----------------------------------------"
echo "----------------------------------------"
echo
echo "========================================"
echo "Git fetching tags"
echo "----------------------------------------"
git fetch --tags || true
echo "----------------------------------------"
echo
echo "========================================"
echo "Git version info"
echo "----------------------------------------"
git log -n1
echo "----------------------------------------"
git describe --tags || true
echo "----------------------------------------"
git describe --tags --always || true
echo "----------------------------------------"