Skip to content

Commit aac780a

Browse files
mattaltberguadnan
authored andcommitted
chore: add manual version for strong-opx action
1 parent 4eb4de9 commit aac780a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

action.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: 'Setup Strong-Opx'
22
description: 'Install and Configure Strong-OpX'
33
inputs:
4+
version:
5+
description: 'Strong-OpX version to use. If not provided, the version of the action will be used.'
6+
default: ''
47
python-version:
58
description: 'Python version to use'
69
default: '3.10'
@@ -31,7 +34,11 @@ runs:
3134
id: get-version
3235
run: |
3336
# Extract version from github.action_ref (e.g., v1.2 from example/my-repo@v1.2)
34-
VERSION=$(echo "${{ github.action_ref }}" | sed 's/^v//')
37+
if [ -z "${{ inputs.version }}" ]; then
38+
VERSION=$(echo "${{ github.action_ref }}" | sed 's/^v//')
39+
else
40+
VERSION="${{ inputs.version }}"
41+
fi
3542
echo "version=$VERSION" >> $GITHUB_OUTPUT
3643
shell: bash
3744

0 commit comments

Comments
 (0)