fix get env from version regex (#2120)

* fix get env from version regex

* Fix regex
This commit is contained in:
Karolina Rakoczy 2022-07-06 10:05:17 +02:00 committed by GitHub
parent e924fb001c
commit 13bd0c4784
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -158,8 +158,7 @@ jobs:
env:
version: ${{github.event.client_payload.version}}
run: |
echo "::set-output name=formatted_version::$(echo $version | grep -Eo "\d\.\d" | sed s/\\.// | head -n 1 | { read formatted; echo "$formatted"; })"
echo "$formatted_version"
echo "::set-output name=formatted_version::$(echo $version | grep -ohE "[0-9]\.[0-9]+" | sed s/\\.// )"
- name: Cypress run - automatically
uses: cypress-io/github-action@v4