Skip to content

Commit e53e01e

Browse files
committed
Fix script, make mvn_version=latest default
1 parent 22d398f commit e53e01e

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ For other types of libraries, you need to install these into the local Maven rep
2929
uses: cljdoc/cljdoc-check-action@v1
3030
with:
3131
mvn_project: io.aviso/pretty
32-
mvn_version: LATEST
32+
mvn_version: LATEST # this is the default
3333
```

action.yml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ inputs:
1919
mvn_version:
2020
required: false
2121
description: 'Required for `analyze` - the maven version of the library to check; ex.: 0.1.29-SNAPSHOT'
22+
default: LATEST
2223

2324

2425
runs:

check.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
set -x
22
set -e
3-
die {
3+
function die {
44
echo "ERROR: $1"
55
exit -1;
66
}
77

8-
if [ "$action" -eq "analyze" ]; then
8+
if [ "$action" = "analyze" ]; then
99
echo "Running 'analyze :project $mvn_project :version $mvn_version' to check a libary installed into a Maven repo"
1010
[ -n "$mvn_project" ] || die 'Missing argument mvn_project that is required for action=analyze'
1111
[ -n "$mvn_version" ] || die 'Missing argument mvn_version that is required for action=analyze'
12-
clojure -Tcljdoc-analyzer :download true analyze :project \""$mvn_project"\" :version \""$mvn_version"\"
12+
clojure -Tcljdoc-analyzer analyze :download true :project \""$mvn_project"\" :version \""$mvn_version"\"
1313
else
1414
echo "Running 'analyze-local' to check the deps.edn based project in the current directory..."
1515
clojure -Tcljdoc-analyzer analyze-local

0 commit comments

Comments
 (0)