From c8b61d405c09d05c339e06b7975fadbb5be5c8b6 Mon Sep 17 00:00:00 2001 From: Matt-Spence Date: Thu, 7 Nov 2024 13:29:59 -0600 Subject: [PATCH] Update clone-staging.yaml --- .github/workflows/clone-staging.yaml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) 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