Skip to content

Commit 2025e6b

Browse files
authored
v1.2.0
2 parents 75e6006 + 51017ef commit 2025e6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,9 @@ runs:
153153
if [[ "${{ inputs.version }}" == "latest" ]]; then
154154
# TODO: could be read from nightly's inventory.json
155155
VERSION_IN_URL="v5.0.0"
156-
elif [[ "${{ inputs.version }}" =~ ^v[0-9]{1,2}\.[0-9]{1,2}\.[0-9]{1,2}|nightly$ ]]; then
156+
elif [[ "${{ inputs.version }}" =~ ^v[0-9]{1,2}\.[0-9]{1,2}\.[0-9]{1,2}(-rc[0-9]+)?|nightly$ ]]; then
157157
VERSION_IN_URL="${{ inputs.version }}"
158-
elif [[ "${{ inputs.version }}" =~ ^[0-9]{1,2}\.[0-9]{1,2}\.[0-9]{1,2}$ ]]; then
158+
elif [[ "${{ inputs.version }}" =~ ^[0-9]{1,2}\.[0-9]{1,2}\.[0-9]{1,2}(-rc[0-9]+)?$ ]]; then
159159
VERSION_IN_URL="v${{ inputs.version }}"
160160
else
161161
printf "::error title=%s::%s\n" "setup-ghdl" "Unsupported GHDL version '${{ inputs.version }}'."

0 commit comments

Comments
 (0)