From a79f78a029a59e5cf3c61ee532e1f7ea038fc662 Mon Sep 17 00:00:00 2001 From: smf Date: Sun, 10 Mar 2024 20:01:20 +0800 Subject: [PATCH] fix condition --- .github/workflows/deploy_compose.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy_compose.yml b/.github/workflows/deploy_compose.yml index 25b5844..6bd7343 100644 --- a/.github/workflows/deploy_compose.yml +++ b/.github/workflows/deploy_compose.yml @@ -36,7 +36,7 @@ jobs: token: ${{ secrets.REPOS_ACCESS_TOKEN }} - name: Change Version if pr - if: ${{ github.event.pull_request }} + if: ${{ github.event_name == 'pull_request' }} run: | echo "Change Version" echo ${{ github.repository }} | @@ -45,7 +45,7 @@ jobs: - name: Deploy to Dev Host on pr uses: https://code.platosoft.org/infrastructure/docker-remote-deployment-action@local - if: ${{ github.event.pull_request }} + if: ${{ github.event_name == 'pull_request' }} with: remote_docker_host: ${{ secrets.DEV_DEPLOY_HOST }} remote_docker_user: ${{ secrets.DEV_DEPLOY_USER }} @@ -61,7 +61,7 @@ jobs: - name: Deploy to Deploy Host on other event uses: https://code.platosoft.org/infrastructure/docker-remote-deployment-action@local - if: ! ${{ github.event.pull_request }} + if: ! ${{ github.event_name == 'pull_request' }} with: remote_docker_host: ${{ secrets.DEPLOY_HOST }} remote_docker_user: ${{ secrets.DEPLOY_USER }}