Files
threeSD/.ci/common/pre-upload.sh
T
2023-09-10 02:16:41 +01:00

14 lines
320 B
Bash
Executable File

#!/bin/bash -ex
git config --global --add safe.directory /__w/threeSD/threeSD
GITDATE="`git show -s --date=short --format='%ad' | sed 's/-//g'`"
GITREV="`git show -s --format='%h'`"
if [[ $GITHUB_REF == refs/tags/* ]]; then
GITNAME="${GITHUB_REF:10}"
else
GITNAME="${GITDATE}-${GITREV}"
fi
mkdir -p artifacts