From 8d4a375400f511c34402123fce3ec9e8c83130bd Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Sun, 7 Jan 2024 02:03:04 +0800 Subject: [PATCH] fix if statement for workflow --- .github/workflows/release-build.yml | 2 +- .github/workflows/update-docs-config.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index 66d5bc06..57f5dc60 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -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 }} diff --git a/.github/workflows/update-docs-config.yml b/.github/workflows/update-docs-config.yml index 01da56c7..ca9329d8 100644 --- a/.github/workflows/update-docs-config.yml +++ b/.github/workflows/update-docs-config.yml @@ -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