Run ngrok only for azure eventgrid. (#660)

Fix ngrok cmd.
This commit is contained in:
Artur Souza 2021-02-05 16:57:14 -08:00 committed by GitHub
parent a020fd0f27
commit 7dd8ffcfd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -92,11 +92,12 @@ jobs:
if: matrix.required-secrets != ''
- name: Start ngrok
if: contains(matrix.component, 'azure.eventgrid')
run: |
wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
unzip -qq ngrok-stable-linux-amd64.zip
./ngrok authtoken ${{ env.AzureEventGridNgrokToken }}
ngrok http -log=stdout -host-header=localhost 9000 > /tmp/ngrok.log &
./ngrok http -log=stdout -host-header=localhost 9000 > /tmp/ngrok.log &
sleep 10
export NGROK_ENDPOINT=`cat /tmp/ngrok.log | grep -Eo 'https://.*'`
echo "Ngrok's endpoint: ${NGROK_ENDPOINT}"