File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,12 @@ function get_sha256() {
14
14
curl -L " $1 " | python -uc ' import hashlib, sys; print(hashlib.sha256(sys.stdin.buffer.read()).hexdigest())'
15
15
}
16
16
17
- if [[ " ${READTHEDOCS_VERSION_TYPE} " == branch && " ${READTHEDOCS_VERSION_NAME } " == master ]]; then
17
+ if [[ " ${READTHEDOCS_VERSION_TYPE} " == branch && " ${READTHEDOCS_VERSION } " == latest ]]; then
18
18
# a commit was pushed to the master branch
19
19
url=" https://github.com/tweag/rules_haskell/archive/${READTHEDOCS_GIT_COMMIT_HASH} .tar.gz"
20
20
hash=$( get_sha256 " $url " )
21
21
sed -i \
22
+ -e ' s/To use a released version/To use the latest commit/' \
22
23
-e ' /name = "rules_haskell"/,/url = "/{' \
23
24
-e ' s%x\{64\}%' " ${hash} " ' %; ' \
24
25
-e ' s%/releases/download/vM[.]NN/rules_haskell-%/archive/%' \
@@ -38,5 +39,5 @@ elif [[ "${READTHEDOCS_VERSION_TYPE}" == tag && "${READTHEDOCS_GIT_IDENTIFIER}"
38
39
-e ' }' \
39
40
docs/haskell-use-cases.rst
40
41
else
41
- die " cannot handle version type ${READTHEDOCS_VERSION_TYPE} / ${READTHEDOCS_VERSION_NAME} "
42
+ echo " skipping version type ${READTHEDOCS_VERSION_TYPE} / ${READTHEDOCS_VERSION_NAME} "
42
43
fi
You can’t perform that action at this time.
0 commit comments