ci: cypress on doc name fix (#26819)

This commit is contained in:
Sumesh Pradhan 2023-08-31 12:06:01 +05:30 committed by GitHub
parent 7c93d81c50
commit a375ccf7b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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=*