Skip to content

Commit

Permalink
fix: M2-7364 Fixing DB drop on preview env deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
aweiland committed Jul 22, 2024
1 parent 74a0681 commit 24d9381
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/drop_db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 24d9381

Please sign in to comment.