From 237d56a12eeee19b3961133a7eecd02c4ff127ca Mon Sep 17 00:00:00 2001 From: "Christopher C. Wells" Date: Sun, 6 Nov 2022 06:15:17 -0800 Subject: [PATCH] Only remove deployments on clean up --- .github/workflows/review-app.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/review-app.yml b/.github/workflows/review-app.yml index 38c06264..89bd264f 100644 --- a/.github/workflows/review-app.yml +++ b/.github/workflows/review-app.yml @@ -24,9 +24,6 @@ jobs: ssh_private_key: ${{ secrets.DOKKU_SSH_PRIVATE_KEY }} destroy-review-app: 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' steps: - name: Destroy review app @@ -41,3 +38,4 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} environment: pr-${{ github.event.pull_request.number }} + onlyRemoveDeployments: true