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