Only remove deployments on clean up

This commit is contained in:
Christopher C. Wells 2022-11-06 06:15:17 -08:00
parent 841d6562de
commit 237d56a12e
1 changed files with 1 additions and 3 deletions

View File

@ -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