From a375ccf7b429e9672d45b9d185c928df187b9b9b Mon Sep 17 00:00:00 2001 From: Sumesh Pradhan Date: Thu, 31 Aug 2023 12:06:01 +0530 Subject: [PATCH] ci: cypress on doc name fix (#26819) --- .github/workflows/ci-test-with-documentdb.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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=*