Skip to content

Commit

Permalink
update the workflow for PR to the matcloud.xyz
Browse files Browse the repository at this point in the history
  • Loading branch information
Dou Du committed May 18, 2024
1 parent 9a5fe08 commit 30f905a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/dokku-dev-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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://[email protected]: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://[email protected]:22/osscar-quantum-mechanics'
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
if: ${{ github.event_name == 'pull_request' && github.event.action == 'synchronize' }}

0 comments on commit 30f905a

Please sign in to comment.