diff --git a/.github/workflows/ci-test-with-documentdb.yml b/.github/workflows/ci-test-with-documentdb.yml index e28d0a6b17..838898ab32 100644 --- a/.github/workflows/ci-test-with-documentdb.yml +++ b/.github/workflows/ci-test-with-documentdb.yml @@ -172,9 +172,9 @@ jobs: run: | timestamp=$(date +%s) - hash=$(echo -n "$timestamp" | sha1sum | awk '{print $1}') + hash=$(hostname) current_date=$(date -d "@$timestamp" +"%d-%m") - DB_NAME="ci${hash:1:3}-${current_date}" + DB_NAME="ci-${current_date}-${hash}" MONGO_CREDS=$(echo $APPSMITH_MONGODB_URI | sed 's/@.*//') URI="${MONGO_CREDS}@localhost:27010/${DB_NAME}?retryWrites=false&replicaSet=rs0&directConnection=true" mongorestore --uri="${URI}" --archive=data.gz --gzip --drop --nsInclude=*