Skip to content

Commit

Permalink
Add git commit to setup-grest execution
Browse files Browse the repository at this point in the history
  • Loading branch information
rdlrt committed Oct 16, 2023
1 parent b48004c commit 0904ada
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/grest-helper-scripts/setup-grest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,9 @@ SGVERSION=v1.1.0rc

# Description : Update the setup-grest.sh version used in the database.
update_grest_version() {
[[ "${RESET_GREST}" == "Y" ]] && artifacts=['reset'] || artifacts=''
koios_release_commit="$(curl -s https://api.github.com/repos/${G_ACCOUNT}/koios-artifacts/commits/${SGVERSION} | jq -r '.sha')"
[[ -z ${koios_release_commit} ]] && koios_release_commit="null"
[[ "${RESET_GREST}" == "Y" ]] && artifacts=['reset',"${koios_release_commit}"] || artifacts=["${koios_release_commit}"]

! output=$(psql ${PGDATABASE} -qbt -c "SELECT GREST.update_control_table(
'version',
Expand Down

0 comments on commit 0904ada

Please sign in to comment.