From 24d9381ceb0224cbc3bdd2ff2381a319ed8d422f Mon Sep 17 00:00:00 2001 From: Andrew Weiland Date: Mon, 22 Jul 2024 09:05:48 -0400 Subject: [PATCH] fix: M2-7364 Fixing DB drop on preview env deletion --- .github/workflows/drop_db.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/drop_db.yaml b/.github/workflows/drop_db.yaml index 4de9d4b4f88..8b563ca5f87 100644 --- a/.github/workflows/drop_db.yaml +++ b/.github/workflows/drop_db.yaml @@ -23,7 +23,7 @@ jobs: - name: Set Owner run: >- PGPASSWORD="${{ secrets.DB_PASSWORD }}" psql -h "${{ secrets.RDS_ENDPOINT }}" -U "${{ secrets.DB_ROOT_USERNAME }}" - -c "alter database ${{ inputs.db-name }} owner to rootUser;" postgres + -c 'alter database ${{ inputs.db-name }} owner to "${{ secrets.DB_ROOT_USERNAME }}";' postgres - name: Drop Database run: | PGPASSWORD="${{ secrets.DB_PASSWORD }}" dropdb -h "${{ secrets.RDS_ENDPOINT }}" -U "${{ secrets.DB_ROOT_USERNAME }}" ${{ inputs.db-name }}