Skip to content

Commit

Permalink
Merge pull request #38 from k1LoW/default-latest
Browse files Browse the repository at this point in the history
Support `latest` version
  • Loading branch information
k2tzumi authored Dec 4, 2024
2 parents 2f6fd33 + d91128b commit dc70493
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,20 @@ runs:
- name: 'Check input parameter'
shell: 'bash'
run: |
#
# subcommand check
#
if [[ ! "${{ inputs.command }}" =~ ^(run|list|loadt)$ ]]; then
echo "Error: Invalid command ${{ inputs.command }} is not supported. Please specify run or list or loadt."
exit 1
fi
#
# version check
#
if [[ "${{ inputs.version }}" == "latest" ]]; then
exit 0
fi
# vx.y.z -> x.y.z
input_version=$(echo "${{ inputs.version }}" | sed 's/^v//')
compatible_version=$(echo "v0.64.0" | sed 's/^v//')
Expand All @@ -86,11 +100,6 @@ runs:
exit 1
fi
done
if [[ ! "${{ inputs.command }}" =~ ^(run|list|loadt)$ ]]; then
echo "Error: Invalid command ${{ inputs.command }} is not supported. Please specify run or list or loadt."
exit 1
fi
- name: Setup k1LoW/runn
uses: k1LoW/gh-setup@v1
with:
Expand Down

0 comments on commit dc70493

Please sign in to comment.