You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wubloader/get-build-tag

12 lines
207 B
Bash

#!/bin/bash
# cd to location of script
cd "$(dirname "$(realpath "$0")")"
TAG=$(git rev-parse --short HEAD)
if [ -n "$(git status --porcelain --untracked-files=no)" ]; then
TAG="$TAG-wip"
fi
echo "$TAG"