don't run if "${{ secrets.NGROK_TOKEN }}" is not set.

This commit is contained in:
neil 2020-08-29 14:11:11 +08:00
parent 918c8f9295
commit b639683ac1

View File

@ -15,6 +15,7 @@ on:
jobs:
Ubuntu:
runs-on: ubuntu-latest
if: "${{ secrets.NGROK_TOKEN }}"
env:
NGROK_TOKEN : ${{ secrets.NGROK_TOKEN }}
TEST_LOCAL: 1
@ -29,6 +30,7 @@ jobs:
MacOS:
runs-on: macos-latest
if: "${{ secrets.NGROK_TOKEN }}"
needs: Ubuntu
env:
NGROK_TOKEN : ${{ secrets.NGROK_TOKEN }}
@ -44,6 +46,7 @@ jobs:
Windows:
runs-on: windows-latest
if: "${{ secrets.NGROK_TOKEN }}"
needs: MacOS
env:
NGROK_TOKEN : ${{ secrets.NGROK_TOKEN }}