Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: 'Setup Strong-Opx'
description: 'Install and Configure Strong-OpX'
inputs:
version:
description: 'Strong-OpX version to use. If not provided, the version of the action will be used.'
default: ''
python-version:
description: 'Python version to use'
default: '3.10'
Expand Down Expand Up @@ -31,7 +34,11 @@ runs:
id: get-version
run: |
# Extract version from github.action_ref (e.g., v1.2 from example/my-repo@v1.2)
VERSION=$(echo "${{ github.action_ref }}" | sed 's/^v//')
if [ -z "${{ inputs.version }}" ]; then
VERSION=$(echo "${{ github.action_ref }}" | sed 's/^v//')
else
VERSION="${{ inputs.version }}"
fi
echo "version=$VERSION" >> $GITHUB_OUTPUT
shell: bash

Expand Down
Loading