From c18eb3d4dd5282f5173ba40529037d50a87ccea3 Mon Sep 17 00:00:00 2001 From: Kexy Biscuit Date: Thu, 3 Oct 2024 12:06:46 +0800 Subject: [PATCH] ci: fix syntax --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 96e7399..3b2bc2d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -19,7 +19,7 @@ jobs: - name: Deploy to website shell: bash - if: ${{ !github.base_ref && github.ref == "refs/heads/master" }} + if: ${{ github.event.push && github.ref == 'refs/heads/master' }} run: | mkdir -p ~/.ssh echo '${{ secrets.KNOWN_HOST_STRING }}' >> ~/.ssh/known_hosts