From bdb600d8d54732e21cbf7cf140c16d11660a072b Mon Sep 17 00:00:00 2001 From: Dmytro Pryvedeniuk Date: Tue, 31 Mar 2026 15:13:26 +0300 Subject: [PATCH 1/3] Improvements for Github Actions * Run builds for any push (not only main branch) to discover issues earlier. * Skip publishing steps for unrelated setup to avoid false email notifications for the forked repositories. * Allow running builds manually (helpful for troubleshooting). * Update build actions to fix warnings related to Node.js 20 (Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-dotnet@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/). --- .github/workflows/aws.yml | 10 +++++----- .github/workflows/azure-service-bus.yml | 10 +++++----- .github/workflows/cosmosdb.yml | 10 +++++----- .github/workflows/docs.yml | 8 ++++---- .github/workflows/dotnet.yml | 14 +++++++------- .github/workflows/efcore.yml | 10 +++++----- .github/workflows/http.yml | 10 +++++----- .github/workflows/kafka.yml | 10 +++++----- .github/workflows/marten.yml | 10 +++++----- .github/workflows/mqtt.yml | 10 +++++----- .github/workflows/mysql.yml | 10 +++++----- .github/workflows/nats.yml | 10 +++++----- .github/workflows/oracle.yml | 10 +++++----- .github/workflows/persistence.yml | 10 +++++----- .github/workflows/polecat.yml | 10 +++++----- .github/workflows/publish_nugets.yml | 9 +++++---- .github/workflows/pulsar.yml | 10 +++++----- .github/workflows/rabbitmq.yml | 10 +++++----- .github/workflows/redis.yml | 12 ++++++------ .github/workflows/sqlite.yml | 10 +++++----- .github/workflows/sqlserver.yml | 10 +++++----- 21 files changed, 107 insertions(+), 106 deletions(-) diff --git a/.github/workflows/aws.yml b/.github/workflows/aws.yml index 58e32a9a0..80767ecea 100644 --- a/.github/workflows/aws.yml +++ b/.github/workflows/aws.yml @@ -2,9 +2,9 @@ name: aws on: push: - branches: [ main ] pull_request: branches: [ main ] + workflow_dispatch: env: config: Release @@ -17,22 +17,22 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: fetch-depth: 0 - name: Setup .NET 8 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 8.0.x - name: Setup .NET 9 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 9.0.x - name: Setup .NET 10 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 10.0.x diff --git a/.github/workflows/azure-service-bus.yml b/.github/workflows/azure-service-bus.yml index 3c60823de..d62810bea 100644 --- a/.github/workflows/azure-service-bus.yml +++ b/.github/workflows/azure-service-bus.yml @@ -2,9 +2,9 @@ name: azure-service-bus on: push: - branches: [ main ] pull_request: branches: [ main ] + workflow_dispatch: env: config: Release @@ -17,22 +17,22 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: fetch-depth: 0 - name: Setup .NET 8 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 8.0.x - name: Setup .NET 9 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 9.0.x - name: Setup .NET 10 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 10.0.x diff --git a/.github/workflows/cosmosdb.yml b/.github/workflows/cosmosdb.yml index a504de599..28c8b94ff 100644 --- a/.github/workflows/cosmosdb.yml +++ b/.github/workflows/cosmosdb.yml @@ -2,9 +2,9 @@ name: cosmosdb on: push: - branches: [ main ] pull_request: branches: [ main ] + workflow_dispatch: env: config: Release @@ -17,22 +17,22 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: fetch-depth: 0 - name: Setup .NET 8 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 8.0.x - name: Setup .NET 9 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 9.0.x - name: Setup .NET 10 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 10.0.x diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index d7e985878..6573f2edc 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -7,20 +7,20 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Setup .NET 8 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 8.0.x - name: Setup .NET 9 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 9.0.x - name: Setup .NET 10 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 10.0.x diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 73bdc452b..5df99375b 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -2,9 +2,9 @@ name: .NET on: push: - branches: [ main ] pull_request: branches: [ main ] + workflow_dispatch: env: config: Release @@ -18,22 +18,22 @@ jobs: steps: - name: Setup .NET 8 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 8.0.x - name: Setup .NET 9 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 9.0.x - name: Setup .NET 10 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 10.0.x - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: fetch-depth: 0 @@ -53,7 +53,7 @@ jobs: - name: Publish CI Packages - if: github.event_name != 'pull_request' + if: github.repository_owner == 'jasperfx' && github.event_name != 'pull_request' && github.ref == 'refs/heads/main' run: | for package in $(find -name "*.nupkg" | grep "minver" -v); do @@ -72,7 +72,7 @@ jobs: done - name: Publish Release Packages - if: startsWith(github.ref, 'refs/tags/v') + if: github.repository_owner == 'jasperfx' && github.event_name != 'pull_request' && startsWith(github.ref, 'refs/tags/v') run: | for package in $(find -name "*.nupkg" | grep "minver" -v); do echo "${0##*/}": Pushing $package... diff --git a/.github/workflows/efcore.yml b/.github/workflows/efcore.yml index 9cffbc85d..d7cbbe040 100644 --- a/.github/workflows/efcore.yml +++ b/.github/workflows/efcore.yml @@ -2,9 +2,9 @@ name: efcore on: push: - branches: [ main ] pull_request: branches: [ main ] + workflow_dispatch: env: config: Release @@ -17,22 +17,22 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: fetch-depth: 0 - name: Setup .NET 8 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 8.0.x - name: Setup .NET 9 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 9.0.x - name: Setup .NET 10 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 10.0.x diff --git a/.github/workflows/http.yml b/.github/workflows/http.yml index e216a03fd..b88653ef3 100644 --- a/.github/workflows/http.yml +++ b/.github/workflows/http.yml @@ -2,9 +2,9 @@ name: http on: push: - branches: [ main ] pull_request: branches: [ main ] + workflow_dispatch: env: config: Release @@ -18,22 +18,22 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: fetch-depth: 0 - name: Setup .NET 8 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 8.0.x - name: Setup .NET 9 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 9.0.x - name: Setup .NET 10 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 10.0.x diff --git a/.github/workflows/kafka.yml b/.github/workflows/kafka.yml index f076d5ea0..5dfdc4892 100644 --- a/.github/workflows/kafka.yml +++ b/.github/workflows/kafka.yml @@ -2,9 +2,9 @@ name: kafka on: push: - branches: [ main ] pull_request: branches: [ main ] + workflow_dispatch: env: config: Release @@ -17,22 +17,22 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: fetch-depth: 0 - name: Setup .NET 8 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 8.0.x - name: Setup .NET 9 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 9.0.x - name: Setup .NET 10 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 10.0.x diff --git a/.github/workflows/marten.yml b/.github/workflows/marten.yml index fe9ce2d51..ba3f5f5b9 100644 --- a/.github/workflows/marten.yml +++ b/.github/workflows/marten.yml @@ -2,9 +2,9 @@ name: marten on: push: - branches: [ main ] pull_request: branches: [ main ] + workflow_dispatch: env: config: Release @@ -17,22 +17,22 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: fetch-depth: 0 - name: Setup .NET 8 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 8.0.x - name: Setup .NET 9 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 9.0.x - name: Setup .NET 10 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 10.0.x diff --git a/.github/workflows/mqtt.yml b/.github/workflows/mqtt.yml index c0eceb0f6..35d78c2c2 100644 --- a/.github/workflows/mqtt.yml +++ b/.github/workflows/mqtt.yml @@ -2,9 +2,9 @@ name: mqtt on: push: - branches: [ main ] pull_request: branches: [ main ] + workflow_dispatch: env: config: Release @@ -17,22 +17,22 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: fetch-depth: 0 - name: Setup .NET 8 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 8.0.x - name: Setup .NET 9 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 9.0.x - name: Setup .NET 10 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 10.0.x diff --git a/.github/workflows/mysql.yml b/.github/workflows/mysql.yml index 91d43649c..8393ae177 100644 --- a/.github/workflows/mysql.yml +++ b/.github/workflows/mysql.yml @@ -2,9 +2,9 @@ name: mysql on: push: - branches: [ main ] pull_request: branches: [ main ] + workflow_dispatch: env: config: Release @@ -17,22 +17,22 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: fetch-depth: 0 - name: Setup .NET 8 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 8.0.x - name: Setup .NET 9 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 9.0.x - name: Setup .NET 10 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 10.0.x diff --git a/.github/workflows/nats.yml b/.github/workflows/nats.yml index 4c67d9af7..42544e940 100644 --- a/.github/workflows/nats.yml +++ b/.github/workflows/nats.yml @@ -2,9 +2,9 @@ name: nats on: push: - branches: [ main ] pull_request: branches: [ main ] + workflow_dispatch: env: config: Release @@ -17,22 +17,22 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: fetch-depth: 0 - name: Setup .NET 8 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 8.0.x - name: Setup .NET 9 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 9.0.x - name: Setup .NET 10 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 10.0.x diff --git a/.github/workflows/oracle.yml b/.github/workflows/oracle.yml index 88ebc9ded..bb43d7e03 100644 --- a/.github/workflows/oracle.yml +++ b/.github/workflows/oracle.yml @@ -2,9 +2,9 @@ name: oracle on: push: - branches: [ main ] pull_request: branches: [ main ] + workflow_dispatch: env: config: Release @@ -17,22 +17,22 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: fetch-depth: 0 - name: Setup .NET 8 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 8.0.x - name: Setup .NET 9 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 9.0.x - name: Setup .NET 10 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 10.0.x diff --git a/.github/workflows/persistence.yml b/.github/workflows/persistence.yml index 1d9dad533..38af063be 100644 --- a/.github/workflows/persistence.yml +++ b/.github/workflows/persistence.yml @@ -2,9 +2,9 @@ name: persistence on: push: - branches: [ main ] pull_request: branches: [ main ] + workflow_dispatch: env: config: Release @@ -17,22 +17,22 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: fetch-depth: 0 - name: Setup .NET 8 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 8.0.x - name: Setup .NET 9 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 9.0.x - name: Setup .NET 10 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 10.0.x diff --git a/.github/workflows/polecat.yml b/.github/workflows/polecat.yml index 039d5fd63..cac088757 100644 --- a/.github/workflows/polecat.yml +++ b/.github/workflows/polecat.yml @@ -2,9 +2,9 @@ name: polecat on: push: - branches: [ main ] pull_request: branches: [ main ] + workflow_dispatch: env: config: Release @@ -17,22 +17,22 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: fetch-depth: 0 - name: Setup .NET 8 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 8.0.x - name: Setup .NET 9 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 9.0.x - name: Setup .NET 10 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 10.0.x diff --git a/.github/workflows/publish_nugets.yml b/.github/workflows/publish_nugets.yml index 7b179c898..0464d64fc 100644 --- a/.github/workflows/publish_nugets.yml +++ b/.github/workflows/publish_nugets.yml @@ -8,20 +8,20 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Setup .NET 8 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 8.0.x - name: Setup .NET 9 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 9.0.x - name: Setup .NET 10 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 10.0.x @@ -30,6 +30,7 @@ jobs: shell: bash - name: Publish to NuGet + if: github.repository_owner == 'jasperfx' && startsWith(github.ref, 'refs/tags/v') run: | find . -name '*.nupkg' -exec dotnet nuget push "{}" -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate \; # find . -name '*.snupkg' -exec dotnet nuget push "{}" -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} \; diff --git a/.github/workflows/pulsar.yml b/.github/workflows/pulsar.yml index 0303d0ecc..59602f566 100644 --- a/.github/workflows/pulsar.yml +++ b/.github/workflows/pulsar.yml @@ -2,9 +2,9 @@ name: pulsar on: push: - branches: [ main ] pull_request: branches: [ main ] + workflow_dispatch: env: config: Release @@ -17,22 +17,22 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: fetch-depth: 0 - name: Setup .NET 8 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 8.0.x - name: Setup .NET 9 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 9.0.x - name: Setup .NET 10 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 10.0.x diff --git a/.github/workflows/rabbitmq.yml b/.github/workflows/rabbitmq.yml index ec869cd20..ea3173854 100644 --- a/.github/workflows/rabbitmq.yml +++ b/.github/workflows/rabbitmq.yml @@ -2,9 +2,9 @@ name: rabbitmq on: push: - branches: [ main ] pull_request: branches: [ main ] + workflow_dispatch: env: config: Release @@ -17,22 +17,22 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: fetch-depth: 0 - name: Setup .NET 8 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 8.0.x - name: Setup .NET 9 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 9.0.x - name: Setup .NET 10 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 10.0.x diff --git a/.github/workflows/redis.yml b/.github/workflows/redis.yml index bf059a517..4733dbc9a 100644 --- a/.github/workflows/redis.yml +++ b/.github/workflows/redis.yml @@ -2,9 +2,9 @@ name: redis on: push: - branches: [ '**' ] pull_request: - branches: [ '**' ] + branches: [ main ] + workflow_dispatch: env: config: Release @@ -17,22 +17,22 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: fetch-depth: 0 - name: Setup .NET 8 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 8.0.x - name: Setup .NET 9 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 9.0.x - name: Setup .NET 10 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 10.0.x diff --git a/.github/workflows/sqlite.yml b/.github/workflows/sqlite.yml index 3e174f324..eea9b54fc 100644 --- a/.github/workflows/sqlite.yml +++ b/.github/workflows/sqlite.yml @@ -2,9 +2,9 @@ name: sqlite on: push: - branches: [ main ] pull_request: branches: [ main ] + workflow_dispatch: env: config: Release @@ -17,22 +17,22 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: fetch-depth: 0 - name: Setup .NET 8 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 8.0.x - name: Setup .NET 9 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 9.0.x - name: Setup .NET 10 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 10.0.x diff --git a/.github/workflows/sqlserver.yml b/.github/workflows/sqlserver.yml index 2bbcda89b..9a937fd4b 100644 --- a/.github/workflows/sqlserver.yml +++ b/.github/workflows/sqlserver.yml @@ -2,9 +2,9 @@ name: sqlserver on: push: - branches: [ main ] pull_request: branches: [ main ] + workflow_dispatch: env: config: Release @@ -17,22 +17,22 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: fetch-depth: 0 - name: Setup .NET 8 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 8.0.x - name: Setup .NET 9 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 9.0.x - name: Setup .NET 10 - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 10.0.x From 6ca1af9dd0ebbe30b17a82131eb6f260edebf301 Mon Sep 17 00:00:00 2001 From: Dmytro Pryvedeniuk Date: Tue, 31 Mar 2026 15:38:21 +0300 Subject: [PATCH 2/3] Avoid attempts to connect to DB logged as errors in the workflow runs --- build/build.cs | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/build/build.cs b/build/build.cs index 5372e5382..914520cbb 100644 --- a/build/build.cs +++ b/build/build.cs @@ -444,27 +444,26 @@ private void WaitForDatabaseToBeReady() while (attempt < 10) try { - using (var conn = new Npgsql.NpgsqlConnection(PostgresConnectionString + ";Pooling=false")) - { - conn.Open(); - - var cmd = conn.CreateCommand(); - cmd.CommandText = "select 1"; - cmd.ExecuteNonQuery(); - - Log.Information("Postgresql is up and ready!"); - break; - } + using var conn = new Npgsql.NpgsqlConnection(PostgresConnectionString + ";Pooling=false"); + conn.Open(); + + var cmd = conn.CreateCommand(); + cmd.CommandText = "select 1"; + cmd.ExecuteNonQuery(); + + Log.Information("Postgresql is up and ready!"); + return; } catch (Exception ex) { - Log.Error(ex, "Error while waiting for the database to be ready"); + Log.Information("Database is not ready ({Error})", ex.Message); Thread.Sleep(250); attempt++; - } - } - - + } + + Log.Error("Database is not ready after all attempts."); + } + private Dictionary ReferencedProjects = new() { { "jasperfx", ["JasperFx", "JasperFx.Events", "EventTests", "JasperFx.RuntimeCompiler"] }, From 8b9ea67d716cfe13ae5f517d916d02a0f39d2a20 Mon Sep 17 00:00:00 2001 From: Dmytro Pryvedeniuk Date: Tue, 31 Mar 2026 16:11:41 +0300 Subject: [PATCH 3/3] Correct check --- .github/workflows/dotnet.yml | 4 ++-- .github/workflows/publish_nugets.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 5df99375b..21f6d78f0 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -53,7 +53,7 @@ jobs: - name: Publish CI Packages - if: github.repository_owner == 'jasperfx' && github.event_name != 'pull_request' && github.ref == 'refs/heads/main' + if: github.repository_owner == 'JasperFx' && github.event_name != 'pull_request' && github.ref == 'refs/heads/main' run: | for package in $(find -name "*.nupkg" | grep "minver" -v); do @@ -72,7 +72,7 @@ jobs: done - name: Publish Release Packages - if: github.repository_owner == 'jasperfx' && github.event_name != 'pull_request' && startsWith(github.ref, 'refs/tags/v') + if: github.repository_owner == 'JasperFx' && github.event_name != 'pull_request' && startsWith(github.ref, 'refs/tags/v') run: | for package in $(find -name "*.nupkg" | grep "minver" -v); do echo "${0##*/}": Pushing $package... diff --git a/.github/workflows/publish_nugets.yml b/.github/workflows/publish_nugets.yml index 0464d64fc..af9cb1470 100644 --- a/.github/workflows/publish_nugets.yml +++ b/.github/workflows/publish_nugets.yml @@ -30,7 +30,7 @@ jobs: shell: bash - name: Publish to NuGet - if: github.repository_owner == 'jasperfx' && startsWith(github.ref, 'refs/tags/v') + if: github.repository_owner == 'JasperFx' && startsWith(github.ref, 'refs/tags/v') run: | find . -name '*.nupkg' -exec dotnet nuget push "{}" -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate \; # find . -name '*.snupkg' -exec dotnet nuget push "{}" -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} \;