diff --git a/.github/workflows/clone-staging.yaml b/.github/workflows/clone-staging.yaml index cc085d530..9fea3d4a9 100644 --- a/.github/workflows/clone-staging.yaml +++ b/.github/workflows/clone-staging.yaml @@ -1,11 +1,9 @@ name: Clone Staging Database on: - # these will be uncommented after testing - # ---- - # schedule: - # # Run daily at 2:00 PM EST - # - cron: '0 * * * *' + schedule: + # Run daily at 2:00 PM EST + - cron: '0 * * * *' # Allow manual triggering workflow_dispatch: @@ -44,6 +42,6 @@ jobs: # clone from source to destination cf target -s $SOURCE_ENVIRONMENT cg-manage-rds clone getgov-$DESTINATION_ENVIRONMENT-database getgov-$SOURCE_ENVIRONMENT-database - - # unshare the service - cf unshare-service getgov-$DESTINATION_ENVIRONMENT-database -s $SOURCE_ENVIRONMENT -f + - name: Cleanup + if: always() + run: cf unshare-service getgov-$DESTINATION_ENVIRONMENT-database -s $SOURCE_ENVIRONMENT -f