Skip to content

Commit 26f3653

Browse files
committed
fix: Try postgres pass inline
1 parent 0530414 commit 26f3653

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/cd-base.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,6 @@ jobs:
181181
- uses: actions/checkout@v4
182182

183183
- name: Cleanup SPs and tables
184-
env:
185-
PGPASSWORD: ${{ secrets.DB_PASSWORD }}
186184
run: |
187185
# install postgres client
188186
sudo apt-get update && sudo apt-get install -y postgresql-client
@@ -191,10 +189,10 @@ jobs:
191189
set -e
192190
for file in $(ls src/db/scripts/cleanup/*.sql | sort -V); do
193191
echo "> Executing: $file"
192+
PGPASSWORD=${{ secrets.DB_PASSWORD }} \
194193
psql -h ${{ needs.deploy.outputs.db_host }} \
195194
-U ${{ secrets.DB_USER }} \
196195
-d ${{ secrets.DB_NAME }} \
197196
-f "$file" \
198-
-v DB_NAME=${{ secrets.DB_NAME }} \
199197
-v ON_ERROR_STOP=1
200198
done

0 commit comments

Comments
 (0)