Skip to content

Commit d54a8a9

Browse files
committed
fix validations
1 parent 65a8bfb commit d54a8a9

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,19 @@ jobs:
1414
triage:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- name: "check releaseVersion"
18-
run: echo "${{ github.event.inputs.releaseVersion }}" | grep -Eq "^\d+\.\d+\.\d+$"
17+
- name: "Check release version"
18+
run: |
19+
[ "${{ github.event.inputs.releaseVersion }}" '=~' '^[0-9]+\.[0-9]+\.[0-9]+$' ]
1920
20-
- name: "check nextVersion"
21-
run: echo "${{ github.event.inputs.nextVersion }}" | grep -Eq "^\d+\.\d+$"
21+
- name: "Check next version"
22+
run: |
23+
[ "${{ github.event.inputs.nextVersion }}" '=~' '^[0-9]+\.[0-9]+$' ]
2224
2325
- uses: actions/checkout@v2.3.4
2426
with:
2527
token: ${{ secrets.QAMETA_CI }}
2628

27-
- name: Configure CI Git User
29+
- name: "Configure CI Git User"
2830
run: |
2931
git config --global user.name qameta-ci
3032
git config --global user.email qameta-ci@qameta.io

0 commit comments

Comments
 (0)