forked from reposense/reposense-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
24 lines (19 loc) · 950 Bytes
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
# Downloads a specific version of RepoSense.jar of your choice from our repository
## Examples of supported options:
### ./get-reposense.py --release # Gets the latest release (Stable)
### ./get-reposense.py --master # Gets the latest master (Beta)
### ./get-reposense.py --tag v1.6.1 # Gets a specific version
### ./get-reposense.py --commit abc123 # Gets a specific commit
### ./get-reposense.py --release --overwrite # Overwrite RepoSense.jar, if exists, with the latest release
version=$1
if [[ -n "$version" ]]; then
./get-reposense.py --$version
else
./get-reposense.py --release
fi
# Executes RepoSense
# Do not change the default output folder name (reposense-report)
## Examples of other valid options; For more, please view the user guide
### java -jar RepoSense.jar --repos https://github.com/reposense/RepoSense.git
# java -jar RepoSense.jar --config ./configs