mirror of https://github.com/snachodog/mybuddy.git
Only remove deployments on clean up
This commit is contained in:
parent
841d6562de
commit
237d56a12e
|
@ -24,9 +24,6 @@ jobs:
|
||||||
ssh_private_key: ${{ secrets.DOKKU_SSH_PRIVATE_KEY }}
|
ssh_private_key: ${{ secrets.DOKKU_SSH_PRIVATE_KEY }}
|
||||||
destroy-review-app:
|
destroy-review-app:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment:
|
|
||||||
name: pr-${{ github.event.pull_request.number }}
|
|
||||||
url: http://pr-${{ github.event.pull_request.number }}.dokku.baby-buddy.net
|
|
||||||
if: github.event.action == 'unlabeled' && github.event.label.name == 'to review'
|
if: github.event.action == 'unlabeled' && github.event.label.name == 'to review'
|
||||||
steps:
|
steps:
|
||||||
- name: Destroy review app
|
- name: Destroy review app
|
||||||
|
@ -41,3 +38,4 @@ jobs:
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
environment: pr-${{ github.event.pull_request.number }}
|
environment: pr-${{ github.event.pull_request.number }}
|
||||||
|
onlyRemoveDeployments: true
|
||||||
|
|
Loading…
Reference in New Issue