fix if statement for workflow

This commit is contained in:
crazywhalecc 2024-01-07 02:03:04 +08:00
parent eda3a9b486
commit 8d4a375400
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680
2 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ jobs:
files: ${{ env.filename }}
- name: "Deploy to Self-Hosted Server"
if: secrets.DEPLOY_SERVER_HOST != ''
if: ${{ secrets.DEPLOY_SERVER_HOST != '' }}
uses: easingthemes/ssh-deploy@main
env:
SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_SERVER_SECRET_KEY }}

View File

@ -11,7 +11,7 @@ jobs:
update-docs-config:
name: "Update Docs Config"
runs-on: ubuntu-latest
if: secrets.DOCS_REPO_TOKEN != ''
if: ${{ secrets.DOCS_REPO_TOKEN != '' }}
steps:
- name: "Checkout static-php-cli"
uses: actions/checkout@v4