We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba12468 commit e6c5d9dCopy full SHA for e6c5d9d
.github/workflows/cd-base.yml
@@ -69,7 +69,15 @@ jobs:
69
70
- name: Create tables and populate (tickets table not existent)
71
if: steps.check_table.outputs.table_exist == 'f'
72
- run: echo ""
+ env:
73
+ PGPASSWORD: ${{ secrets.DB_PASSWORD }}
74
+ run: |
75
+ # if something fails stop
76
+ set -e
77
+ for file in $(ls src/db/scripts*.sql | sort -V); do
78
+ echo "> Executing: $file"
79
+ psql -h ${{ steps.db.outputs.public_ip }} -U ${{ secrets.DB_USER }} -d ${{ secrets.DB_NAME }} -f "$file" -v ON_ERROR_STOP=1
80
+ done
81
82
- name: Skipped table creation (existent tickets table)
83
if: steps.check_table.outputs.table_exist == 't'
0 commit comments