You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.2 KiB

  1. name: ZeroSSL
  2. on:
  3. push:
  4. branches:
  5. - '*'
  6. paths:
  7. - '**.sh'
  8. - '**.yml'
  9. jobs:
  10. CheckToken:
  11. runs-on: ubuntu-latest
  12. outputs:
  13. hasToken: ${{ steps.step_one.outputs.hasToken }}
  14. env:
  15. NGROK_TOKEN : ${{ secrets.NGROK_TOKEN }}
  16. steps:
  17. - name: Set the value
  18. id: step_one
  19. run: |
  20. if [ "$NGROK_TOKEN" ] ; then
  21. echo "::set-output name=hasToken::true"
  22. else
  23. echo "::set-output name=hasToken::false"
  24. fi
  25. - name: Check the value
  26. run: echo ${{ steps.step_one.outputs.hasToken }}
  27. ZeroSSL:
  28. runs-on: ubuntu-latest
  29. needs: CheckToken
  30. if: "contains(needs.CheckToken.outputs.hasToken, 'true')"
  31. env:
  32. ACME_DIRECTORY: https://acme.zerossl.com/v2/DV90
  33. TEST_LOCAL: 1
  34. TEST_CA: "ZeroSSL"
  35. NGROK_TOKEN : ${{ secrets.NGROK_TOKEN }}
  36. ACCOUNT_EMAIL: githubCI@acme.sh
  37. steps:
  38. - uses: actions/checkout@v2
  39. - name: Install tools
  40. run: sudo apt-get install -y socat
  41. - name: Clone acmetest
  42. run: cd .. && git clone https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
  43. - name: Run acmetest
  44. run: cd ../acmetest && ./letest.sh