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