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