diff --git a/.circleci/config.yml b/.circleci/config.yml index e87584e196..f09cf017f0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3549,9 +3549,12 @@ jobs: - run: name: Create Neon branch command: | + export EXPIRES_AT=$(date -u -d "+6 hours" +"%Y-%m-%dT%H:%M:%SZ") + echo "Expires at: $EXPIRES_AT" neon branches create \ --project-id $NEON_PROJECT_ID \ --name preview/commit-${CIRCLE_SHA1:0:7} \ + --expires-at $EXPIRES_AT \ --parent br-fancy-paper-ad1olsb3 \ --api-key $NEON_API_KEY || true - run: @@ -3565,15 +3568,6 @@ jobs: --role neondb_owner) echo "export E2E_UI_TEST_DATABASE_URL=$DB_URL" >> $BASH_ENV - - run: - name: Delete Neon branch - command: | - neon branches delete \ - --project-id $NEON_PROJECT_ID \ - --name preview/commit-${CIRCLE_SHA1:0:7} \ - --api-key $NEON_API_KEY \ - --yes || true - when: always e2e_ui_testing: machine: