diff --git a/.github/workflows/linux-build-and-test.yaml b/.github/workflows/linux-build-and-test.yaml index df1a83ca846..4e7c864142c 100644 --- a/.github/workflows/linux-build-and-test.yaml +++ b/.github/workflows/linux-build-and-test.yaml @@ -282,4 +282,6 @@ jobs: GITHUB_PR_NUMBER=0 fi export GITHUB_PR_NUMBER + PSQL="${HOME}/${PG_INSTALL_DIR}/bin/psql" + export PSQL scripts/upload_ci_stats.sh diff --git a/scripts/upload_ci_stats.sh b/scripts/upload_ci_stats.sh index 0be1c72c146..38c0ff734da 100755 --- a/scripts/upload_ci_stats.sh +++ b/scripts/upload_ci_stats.sh @@ -8,7 +8,8 @@ then exit 0 fi -PSQL=(psql "${CI_STATS_DB}" -qtAX "--set=ON_ERROR_STOP=1") +PSQL=${PSQL:-psql} +PSQL=("${PSQL}" "${CI_STATS_DB}" -qtAX "--set=ON_ERROR_STOP=1") # The tables we are going to use. This schema is here just as a reminder, you'll # have to create them manually. After you manually change the actual DB schema,