From 8b353e919a50dff000c91f428983838549c9e018 Mon Sep 17 00:00:00 2001 From: John Ake Date: Wed, 1 Nov 2023 11:41:15 +0200 Subject: [PATCH] Purge db backup file after upload --- .github/workflows/actions/database-backup/action.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/actions/database-backup/action.yml b/.github/workflows/actions/database-backup/action.yml index c5fdb1d0..073189d2 100644 --- a/.github/workflows/actions/database-backup/action.yml +++ b/.github/workflows/actions/database-backup/action.yml @@ -135,19 +135,12 @@ runs: az storage blob upload --account-name ${{ env.storage_account }} --container-name database-backup \ --file ${{ env.BACKUP_FILE_NAME }}.tar.gz --name ${{ env.BACKUP_FILE_NAME }}.tar.gz --overwrite \ --account-key '${{ env.STORAGE_CONN_STR }}' - rm ${BACKUP_FILE_NAME}.tar.gz - - - name: Disk cleanup - shell: bash - run: | - sudo rm -rf /usr/local/lib/android || true - sudo rm -rf /usr/share/dotnet || true - sudo rm -rf /opt/ghc || true - name: Remove backup file shell: bash run: | rm ${{ env.BACKUP_FILE_NAME }}.sql + rm ${{ env.BACKUP_FILE_NAME }}.tar.gz - name: Check for Failure if: ${{ failure() }}