We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1932e6d + b5ec9b6 commit df4b533Copy full SHA for df4b533
1 file changed
.github/workflows/release.yml
@@ -42,9 +42,12 @@ jobs:
42
43
- name: Get version
44
id: version
45
+ env:
46
+ EVENT_NAME: ${{ github.event_name }}
47
+ INPUT_VERSION: ${{ inputs.version }}
48
run: |
- if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
- echo "version=${{ inputs.version }}" >> $GITHUB_OUTPUT
49
+ if [ "$EVENT_NAME" = "workflow_dispatch" ]; then
50
+ echo "version=$INPUT_VERSION" >> $GITHUB_OUTPUT
51
else
52
echo "version=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
53
fi
0 commit comments