Browse Source

fix check token

pull/3175/head
neil 5 years ago
parent
commit
6f1ca0ed59
  1. 4
      .github/workflows/DNS.yml

4
.github/workflows/DNS.yml

@ -20,12 +20,12 @@ jobs:
outputs:
hasToken: ${{ steps.step_one.outputs.hasToken }}
env:
_${{ secrets.TokenName1 }} : ${{ secrets.TokenValue1 }}
_ACME_CHECK_TOKEN_${{ secrets.TokenName1 }} : ${{ secrets.TokenValue1 }}
steps:
- name: Set the value
id: step_one
run: |
if [ "$_${{ secrets.TokenName1}}" != "_" ] ; then
if [ "$_ACME_CHECK_TOKEN_${{ secrets.TokenName1}}" ] ; then
echo "::set-output name=hasToken::true"
else
echo "::set-output name=hasToken::false"

Loading…
Cancel
Save