Skip to content

Commit

Permalink
Merge pull request #718 from CodeForAfrica/destroy-test-app
Browse files Browse the repository at this point in the history
fix: destroy test review app
  • Loading branch information
VinneyJ committed Jun 18, 2024
2 parents 967eb8a + 34514b2 commit 7f234f5
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/codeforafrica-deploy-review-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,12 @@ jobs:
destroy_review_app:
runs-on: ubuntu-latest
# only run when a pull request is closed
if: github.event.action == 'closed'
if: github.event_name == 'pull_request' && github.event.action == 'closed'
steps:
- name: Destroy the review app
- name: Destroy review app
uses: dokku/github-action@master
with:
# destroy a review app
command: review-apps:destroy
git_remote_url: ${{ env.DOKKU_REMOTE_URL }}/${{ env.APP_NAME }}
# specify a name for the review app
git_remote_url: ${{ env.DOKKU_REMOTE_URL }}/codeforafrica-ui
review_app_name: ${{ env.APP_NAME }}
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}

0 comments on commit 7f234f5

Please sign in to comment.