From 728a9bb2c582013d9004b1784a97054555a56002 Mon Sep 17 00:00:00 2001 From: Shay Rojansky Date: Tue, 21 Apr 2026 10:29:09 +0200 Subject: [PATCH] Add Npgsql and EFCore.PG as git submodules Replace separate checkout steps in the build workflow with git submodules pointing to the latest stable releases (Npgsql v10.0.2, EFCore.PG v10.0.1). - Add Npgsql and EFCore.PG as git submodules - Update workflow checkout to use submodules: true - Remove separate Checkout Npgsql/EFCore.PG workflow steps - Remove repository_dispatch trigger (no longer needed) - Remove /Npgsql and /EFCore.PG from .gitignore Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/build-documentation.yml | 19 ++----------------- .gitignore | 2 -- .gitmodules | 6 ++++++ EFCore.PG | 1 + Npgsql | 1 + 5 files changed, 10 insertions(+), 19 deletions(-) create mode 160000 EFCore.PG create mode 160000 Npgsql diff --git a/.github/workflows/build-documentation.yml b/.github/workflows/build-documentation.yml index dddf1fceb..4e3ebf612 100644 --- a/.github/workflows/build-documentation.yml +++ b/.github/workflows/build-documentation.yml @@ -6,9 +6,6 @@ on: pull_request: - # Used to trigger the flow from Npgsql/EFCore.PG via HTTP POST - repository_dispatch: - # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -23,6 +20,8 @@ jobs: steps: - name: Checkout repo uses: actions/checkout@v6 + with: + submodules: true - name: Use Node.js uses: actions/setup-node@v6.4.0 @@ -41,26 +40,12 @@ jobs: with: dotnet-version: 10.0.x - - name: Checkout Npgsql - uses: actions/checkout@v6 - with: - repository: npgsql/npgsql - ref: docs - path: Npgsql - # docfx has issues specifically with analyzer/sourcegen projects; build manually before. - name: Build Npgsql run: dotnet build -c Release shell: bash working-directory: Npgsql - - name: Checkout EFCore.PG - uses: actions/checkout@v6 - with: - repository: npgsql/Npgsql.EntityFrameworkCore.PostgreSQL - ref: docs - path: EFCore.PG - - name: Build EFCore.PG run: dotnet build -c Release shell: bash diff --git a/.gitignore b/.gitignore index 6114fe902..d069b0a5d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,3 @@ obj -/EFCore.PG -/Npgsql /_site /_exported_templates diff --git a/.gitmodules b/.gitmodules index e69de29bb..79b5f1c3a 100644 --- a/.gitmodules +++ b/.gitmodules @@ -0,0 +1,6 @@ +[submodule "Npgsql"] + path = Npgsql + url = https://github.com/npgsql/npgsql.git +[submodule "EFCore.PG"] + path = EFCore.PG + url = https://github.com/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL.git diff --git a/EFCore.PG b/EFCore.PG new file mode 160000 index 000000000..2679a9d76 --- /dev/null +++ b/EFCore.PG @@ -0,0 +1 @@ +Subproject commit 2679a9d768d14f34d077e037311f80acb6f6b3b4 diff --git a/Npgsql b/Npgsql new file mode 160000 index 000000000..4d57e27b3 --- /dev/null +++ b/Npgsql @@ -0,0 +1 @@ +Subproject commit 4d57e27b370e2ab2a350ad8bcef78d7ddd97e5ea