We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4eb4de9 commit aac780aCopy full SHA for aac780a
action.yml
@@ -1,6 +1,9 @@
1
name: 'Setup Strong-Opx'
2
description: 'Install and Configure Strong-OpX'
3
inputs:
4
+ version:
5
+ description: 'Strong-OpX version to use. If not provided, the version of the action will be used.'
6
+ default: ''
7
python-version:
8
description: 'Python version to use'
9
default: '3.10'
@@ -31,7 +34,11 @@ runs:
31
34
id: get-version
32
35
run: |
33
36
# Extract version from github.action_ref (e.g., v1.2 from example/my-repo@v1.2)
- 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
42
echo "version=$VERSION" >> $GITHUB_OUTPUT
43
shell: bash
44
0 commit comments