Skip to content

Commit e04e217

Browse files
authored
Fix bash
1 parent 3bde2db commit e04e217

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ jobs:
2525
id: check-cmdstan
2626
run: |
2727
if [[ "${{ github.event.inputs.cmdstan-version }}" == "latest" ]]; then
28-
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-
else [[ "${{ github.event.inputs.cmdstan-version }}" != "latest" ]]; then
3028
echo "::set-output name=version::${{ github.event.inputs.cmdstan-version }}"
29+
else
30+
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:])')"
3131
fi
3232
outputs:
3333
version: ${{ steps.check-cmdstan.outputs.version }}

0 commit comments

Comments
 (0)