Update pre-upload.sh

This commit is contained in:
Josh Shippam
2023-09-10 02:16:41 +01:00
committed by GitHub
parent 75ffed53ff
commit 8635ba5f22
+2
View File
@@ -1,5 +1,7 @@
#!/bin/bash -ex #!/bin/bash -ex
git config --global --add safe.directory /__w/threeSD/threeSD
GITDATE="`git show -s --date=short --format='%ad' | sed 's/-//g'`" GITDATE="`git show -s --date=short --format='%ad' | sed 's/-//g'`"
GITREV="`git show -s --format='%h'`" GITREV="`git show -s --format='%h'`"
if [[ $GITHUB_REF == refs/tags/* ]]; then if [[ $GITHUB_REF == refs/tags/* ]]; then