Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
faaa7bfa
Commit
faaa7bfa
authored
Aug 29, 2020
by
neil
Browse files
check token before run
parent
70366a98
Changes
1
Hide whitespace changes
Inline
Side-by-side
.github/workflows/LetsEncrypt.yml
View file @
faaa7bfa
...
@@ -13,9 +13,23 @@ on:
...
@@ -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:
...
@@ -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:
...
@@ -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 }}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment