diff --git a/.github/workflows/DNS.yml b/.github/workflows/DNS.yml index 7b4392c3..589fc154 100644 --- a/.github/workflows/DNS.yml +++ b/.github/workflows/DNS.yml @@ -25,7 +25,7 @@ jobs: - name: Set the value id: step_one run: | - if [ "$${{ secrets.TokenName1 }}" != "_" ] ; then + if [ "$_${{ secrets.TokenName1}}" != "_" ] ; then echo "::set-output name=hasToken::true" else echo "::set-output name=hasToken::false" @@ -36,9 +36,9 @@ jobs: Fail: runs-on: ubuntu-latest needs: CheckToken - if: "${{needs.CheckToken.outputs.hasToken}} == 'false'" + if: "contains(needs.CheckToken.outputs.hasToken, 'false')" steps: - - name: "Read this: https://github.com/acmesh-official/acme.sh/wiki/DNS-API-Test" + - name: "Read this: https://github.com/acmesh-official/acme.sh/wiki/DNS-API-Test" run: | echo "Plese see this page to fix the error: https://github.com/acmesh-official/acme.sh/wiki/DNS-API-Test" - name: Fail