From 603c61a3d755f1a30e9850292ae07c7ca056b446 Mon Sep 17 00:00:00 2001 From: Himmel Date: Mon, 26 May 2025 16:50:47 +0800 Subject: [PATCH 1/2] update NLS date format example - Update the date format example in both Chinese and English documentation --- CN/modules/ROOT/pages/v4.4/15.adoc | 4 ++-- EN/modules/ROOT/pages/v4.4/15.adoc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CN/modules/ROOT/pages/v4.4/15.adoc b/CN/modules/ROOT/pages/v4.4/15.adoc index 440cd63..515095b 100644 --- a/CN/modules/ROOT/pages/v4.4/15.adoc +++ b/CN/modules/ROOT/pages/v4.4/15.adoc @@ -120,7 +120,7 @@ HINT: Perhaps you need a different "datestyle" setting. ivorysql=# select * from test_nls_date; a | created_at ---+------------ - 1 | 2024-04-05 - 2 | 2024-04-15 + 1 | 24-04-05 + 2 | 24-04-15 (2 rows) ``` \ No newline at end of file diff --git a/EN/modules/ROOT/pages/v4.4/15.adoc b/EN/modules/ROOT/pages/v4.4/15.adoc index e4e3fa6..4ca6763 100644 --- a/EN/modules/ROOT/pages/v4.4/15.adoc +++ b/EN/modules/ROOT/pages/v4.4/15.adoc @@ -119,7 +119,7 @@ HINT: Perhaps you need a different "datestyle" setting. ivorysql=# select * from test_nls_date; a | created_at ---+------------ - 1 | 2024-04-05 - 2 | 2024-04-15 + 1 | 24-04-05 + 2 | 24-04-15 (2 rows) ``` \ No newline at end of file From 4fa3b8752b75de4e76341f169abc4404bacbcd4f Mon Sep 17 00:00:00 2001 From: Himmel Date: Tue, 27 May 2025 08:37:01 +0800 Subject: [PATCH 2/2] switch to pull_request_target and update checkout step - Update checkout step to use specific ref and repository from the PR --- .github/workflows/pr-preview.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-preview.yml b/.github/workflows/pr-preview.yml index 6a0fd0b..d121485 100644 --- a/.github/workflows/pr-preview.yml +++ b/.github/workflows/pr-preview.yml @@ -1,7 +1,7 @@ name: Pr preview on: - pull_request: + pull_request_target: jobs: build-and-deploy: @@ -16,6 +16,8 @@ jobs: - name: Checkout Documentation Repository (ivorysql_doc) uses: actions/checkout@v4 with: + ref: ${{ github.event.pull_request.head.sha }} + repository: ${{ github.event.pull_request.head.repo.full_name }} path: ivorysql_doc - name: Fetch All Relevant Branches into Local Docs Repo