From 664f51572d48ffa54212361d4cadf49fca906e55 Mon Sep 17 00:00:00 2001 From: milanmajchrak <90026355+milanmajchrak@users.noreply.github.com> Date: Tue, 10 Oct 2023 10:35:14 +0200 Subject: [PATCH] Update erase_db.yml Enabled redeploy --- .github/workflows/erase_db.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/erase_db.yml b/.github/workflows/erase_db.yml index bb7f378e8a6..cb8fe37bb14 100644 --- a/.github/workflows/erase_db.yml +++ b/.github/workflows/erase_db.yml @@ -17,11 +17,11 @@ jobs: docker stop dspacedb$INSTANCE dspace$INSTANCE dspace-angular$INSTANCE docker rm dspacedb$INSTANCE dspace$INSTANCE dspace-angular$INSTANCE - name: remove volumes - if: 'false' + if: '!cancelled()' run: | docker volume rm dspace-${{env.INSTANCE}}_pgdata dspace-${{env.INSTANCE}}_assetstore - name: redeploy - if: 'false' + if: '!cancelled()' run: | curl -H "Accept: application/vnd.github.everest-preview+json" -H "Authorization: token ${{ secrets.DEPLOY_DEV5_GH_ACTION_DISPATCH }}" --request POST https://api.github.com/repos/dataquest-dev/dspace-angular/actions/workflows/deploy.yml/dispatches --data "{\"ref\":\"refs/heads/dtq-dev\"}"