mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-25 14:41:40 +00:00
check token before run
This commit is contained in:
parent
70366a98bd
commit
faaa7bfa3a
18
.github/workflows/LetsEncrypt.yml
vendored
18
.github/workflows/LetsEncrypt.yml
vendored
@ -13,9 +13,23 @@ on:
|
|||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
CheckToken:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
hasToken: ${{ steps.step_one.outputs.hasToken }}
|
||||||
|
env:
|
||||||
|
NGROK_TOKEN : ${{ secrets.NGROK_TOKEN }}
|
||||||
|
steps:
|
||||||
|
- name: Set the value
|
||||||
|
id: step_one
|
||||||
|
run: [ "$NGROK_TOKEN" ] && echo "::set-output name=hasToken::true" || echo "::set-output name=hasToken::false"
|
||||||
|
- name: Check the value
|
||||||
|
run: echo ${{ steps.step_one.outputs.hasToken }}
|
||||||
|
|
||||||
Ubuntu:
|
Ubuntu:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: "contains(secrets.NGROK_TOKEN, '-')"
|
needs: CheckToken
|
||||||
|
if: "contains(needs.CheckToken.outputs.hasToken, 'true')"
|
||||||
env:
|
env:
|
||||||
NGROK_TOKEN : ${{ secrets.NGROK_TOKEN }}
|
NGROK_TOKEN : ${{ secrets.NGROK_TOKEN }}
|
||||||
TEST_LOCAL: 1
|
TEST_LOCAL: 1
|
||||||
@ -30,7 +44,6 @@ jobs:
|
|||||||
|
|
||||||
MacOS:
|
MacOS:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
if: "contains(secrets.NGROK_TOKEN, '-')"
|
|
||||||
needs: Ubuntu
|
needs: Ubuntu
|
||||||
env:
|
env:
|
||||||
NGROK_TOKEN : ${{ secrets.NGROK_TOKEN }}
|
NGROK_TOKEN : ${{ secrets.NGROK_TOKEN }}
|
||||||
@ -46,7 +59,6 @@ jobs:
|
|||||||
|
|
||||||
Windows:
|
Windows:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
if: "contains(secrets.NGROK_TOKEN, '-')"
|
|
||||||
needs: MacOS
|
needs: MacOS
|
||||||
env:
|
env:
|
||||||
NGROK_TOKEN : ${{ secrets.NGROK_TOKEN }}
|
NGROK_TOKEN : ${{ secrets.NGROK_TOKEN }}
|
||||||
|
Loading…
Reference in New Issue
Block a user