Updated test dashboard deployment to allow dashes

API_URI can now contain dashes.
This commit is contained in:
Mikail KOCAK 2020-08-28 12:03:19 +02:00
parent 265c8bc0ca
commit 1c77a2560f

View file

@ -47,7 +47,7 @@ jobs:
env:
pull_request_body: ${{ github.event.pull_request.body }}
prefix: API_URI=
pattern: (http|https)://[a-zA-Z0-9.]+/graphql/?
pattern: (http|https)://[a-zA-Z0-9.-]+/graphql/?
run: |
echo "::set-output name=custom_api_uri::$(echo $pull_request_body | grep -Eo "$prefix$pattern" | sed s/$prefix// | head -n 1)"