Skip to content

Commit 3bde2db

Browse files
authored
Bash cleanup
1 parent 381126c commit 3bde2db

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ jobs:
2626
run: |
2727
if [[ "${{ github.event.inputs.cmdstan-version }}" == "latest" ]]; then
2828
echo "::set-output name=version::$(python -c 'import requests;print(requests.get("https://api.github.com/repos/stan-dev/cmdstan/releases/latest").json()["tag_name"][1:])')"
29-
fi
30-
if [[ "${{ github.event.inputs.cmdstan-version }}" != "latest" ]]; then
29+
else [[ "${{ github.event.inputs.cmdstan-version }}" != "latest" ]]; then
3130
echo "::set-output name=version::${{ github.event.inputs.cmdstan-version }}"
3231
fi
3332
outputs:

0 commit comments

Comments
 (0)