File tree 3 files changed +15
-1
lines changed
3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 16
16
17
17
- name : Checkout repository
18
18
uses : actions/checkout@v2
19
+ with :
20
+ fetch-depth : 0
19
21
20
22
- name : Package Source
21
23
run : |
24
+ ./setgitversion
22
25
mkdir source
23
26
cabal sdist
24
27
mv dist-newstyle/sdist/*.tar.gz source/source.tar.gz
Original file line number Diff line number Diff line change
1
+ #! /bin/sh -xe
2
+ # This script hardcodes the `git describe` version as ShellCheck's version number.
3
+ # This is done to allow shellcheck --version to differ from the cabal version when
4
+ # building git snapshots.
5
+
6
+ file=" src/ShellCheck/Data.hs"
7
+ test -e " $file "
8
+ tmp=$( mktemp)
9
+ version=$( git describe)
10
+ sed -e " s/=.*VERSIONSTRING.*/= \" $version \" -- VERSIONSTRING, DO NOT SUBMIT/" " $file " > " $tmp "
11
+ mv " $tmp " " $file "
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import ShellCheck.Interface
4
4
import Data.Version (showVersion )
5
5
import Paths_ShellCheck (version )
6
6
7
- shellcheckVersion = showVersion version
7
+ shellcheckVersion = showVersion version -- VERSIONSTRING
8
8
9
9
internalVariables = [
10
10
-- Generic
You can’t perform that action at this time.
0 commit comments