From 30f905ab6aa343fa981e4ef5500b0f0e0fe16f3c Mon Sep 17 00:00:00 2001 From: Dou Du Date: Sat, 18 May 2024 10:02:16 +0200 Subject: [PATCH] update the workflow for PR to the matcloud.xyz --- .github/workflows/dokku-dev-deploy.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dokku-dev-deploy.yml b/.github/workflows/dokku-dev-deploy.yml index 139e070..c2c3de2 100644 --- a/.github/workflows/dokku-dev-deploy.yml +++ b/.github/workflows/dokku-dev-deploy.yml @@ -21,10 +21,16 @@ jobs: with: fetch-depth: 0 - - name: Push to dokku + - name: Push to dokku (PR open) uses: dokku/github-action@master with: git_remote_url: 'ssh://dokku@matcloud.xyz:22/osscar-quantum-mechanics' ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }} - if: github.event_name == 'pull_request' + if: ${{ github.event_name == 'pull_request' && github.event.action == 'opened' }} + - name: Push to dokku (PR synchronize) + uses: dokku/github-action@master + with: + git_remote_url: 'ssh://dokku@matcloud.xyz:22/osscar-quantum-mechanics' + ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }} + if: ${{ github.event_name == 'pull_request' && github.event.action == 'synchronize' }}