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 094ee5a commit 0530414Copy full SHA for 0530414
.github/workflows/cd-base.yml
@@ -174,7 +174,7 @@ jobs:
174
secrets: inherit # pragma: allowlist secret
175
176
cleanup-database:
177
- needs: run-integration-tests
+ needs: [deploy, run-integration-tests]
178
runs-on: ubuntu-latest
179
if: always() && github.event.inputs.deployment_env != 'local' # run even if integration test fail
180
steps:
@@ -191,7 +191,7 @@ jobs:
191
set -e
192
for file in $(ls src/db/scripts/cleanup/*.sql | sort -V); do
193
echo "> Executing: $file"
194
- psql -h ${{ steps.db.outputs.public_ip }} \
+ psql -h ${{ needs.deploy.outputs.db_host }} \
195
-U ${{ secrets.DB_USER }} \
196
-d ${{ secrets.DB_NAME }} \
197
-f "$file" \
0 commit comments