Fix regexp
This commit is contained in:
@@ -3,7 +3,7 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
version:
|
version:
|
||||||
description: 'Needs to match, exactly, the name of a milestone. The version to be released please respect: major.minor.patch or major.minor.patch-preview<number> format. example: 7.4.3 or 7.4.3-preview1'
|
description: 'Needs to match, exactly, the name of a milestone. The version to be released please respect: major.minor.patch or major.minor.patch-preview<number> format. example: 7.4.3 or 7.4.3-preview'
|
||||||
required: true
|
required: true
|
||||||
env:
|
env:
|
||||||
YARN_ENABLE_IMMUTABLE_INSTALLS: false
|
YARN_ENABLE_IMMUTABLE_INSTALLS: false
|
||||||
@@ -17,13 +17,13 @@ jobs:
|
|||||||
id: regex-match
|
id: regex-match
|
||||||
with:
|
with:
|
||||||
text: ${{ github.event.inputs.version }}
|
text: ${{ github.event.inputs.version }}
|
||||||
regex: '^(\d+.\d+).\d+(?:-(?:(preview\d+)|(pre)))?$'
|
regex: '^(\d+.\d+).\d+(?:-(?:(preview\d?)|(pre)))?$'
|
||||||
- uses: actions-ecosystem/action-regex-match@v2.0.2
|
- uses: actions-ecosystem/action-regex-match@v2.0.2
|
||||||
if: ${{ inputs.version_call != '' }}
|
if: ${{ inputs.version_call != '' }}
|
||||||
id: regex-match-version-call
|
id: regex-match-version-call
|
||||||
with:
|
with:
|
||||||
text: ${{ inputs.version_call }}
|
text: ${{ inputs.version_call }}
|
||||||
regex: '^(\d+.\d+).\d+(?:-(?:(preview\d+)|(pre)))?$'
|
regex: '^(\d+.\d+).\d+(?:-(?:(preview\d?)|(pre)))?$'
|
||||||
- name: Validate input version
|
- name: Validate input version
|
||||||
if: ${{ steps.regex-match.outputs.match == '' && github.event.inputs.version != '' }}
|
if: ${{ steps.regex-match.outputs.match == '' && github.event.inputs.version != '' }}
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user