We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74b8fe4 commit 75d1634Copy full SHA for 75d1634
2 files changed
.github/workflows/build.yml
@@ -26,7 +26,6 @@ jobs:
26
27
- name: Deduce tags
28
run: |
29
- git fetch --tags # does this fix shallow clone?
30
mkdir source
31
echo "latest" > source/tags
32
if tag=$(git describe --exact-match --tags)
setgitversion
@@ -7,5 +7,10 @@ file="src/ShellCheck/Data.hs"
7
test -e "$file"
8
tmp=$(mktemp)
9
version=$(git describe)
10
+if [ -z "$version" ]
11
+then
12
+ short_commit=$(git rev-parse --short HEAD)
13
+ version="0.0.0-g$short_commit"
14
+fi
15
sed -e "s/=.*VERSIONSTRING.*/= \"$version\" -- VERSIONSTRING, DO NOT SUBMIT/" "$file" > "$tmp"
16
mv "$tmp" "$file"
0 commit comments