Skip to content

Commit 30f905a

Browse files
author
Dou Du
committed
update the workflow for PR to the matcloud.xyz
1 parent 9a5fe08 commit 30f905a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/dokku-dev-deploy.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,16 @@ jobs:
2121
with:
2222
fetch-depth: 0
2323

24-
- name: Push to dokku
24+
- name: Push to dokku (PR open)
2525
uses: dokku/github-action@master
2626
with:
2727
git_remote_url: 'ssh://[email protected]:22/osscar-quantum-mechanics'
2828
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
29-
if: github.event_name == 'pull_request'
29+
if: ${{ github.event_name == 'pull_request' && github.event.action == 'opened' }}
3030

31+
- name: Push to dokku (PR synchronize)
32+
uses: dokku/github-action@master
33+
with:
34+
git_remote_url: 'ssh://[email protected]:22/osscar-quantum-mechanics'
35+
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
36+
if: ${{ github.event_name == 'pull_request' && github.event.action == 'synchronize' }}

0 commit comments

Comments
 (0)