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\"}"