Skip to content

Commit 54d5de1

Browse files
committed
Fix custom version in GHA runs
1 parent a40b6a1 commit 54d5de1

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
@@ -13,7 +13,7 @@ on:
1313
cmdstan-version:
1414
description: 'Version to test'
1515
required: false
16-
default: 'latest'
16+
default: ''
1717

1818
jobs:
1919
get-cmdstan-version:
@@ -24,7 +24,7 @@ jobs:
2424
- name: Get CmdStan version
2525
id: check-cmdstan
2626
run: |
27-
if [[ "${{ github.event.inputs.cmdstan-version }}" == "latest" ]]; then
27+
if [[ "${{ github.event.inputs.cmdstan-version }}" != "" ]]; then
2828
echo "::set-output name=version::${{ github.event.inputs.cmdstan-version }}"
2929
else
3030
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:])')"

0 commit comments

Comments
 (0)