diff --git a/.github/workflows/nuget-package-template.yml b/.github/workflows/nuget-package-template.yml index 42ee04a..aecca1d 100644 --- a/.github/workflows/nuget-package-template.yml +++ b/.github/workflows/nuget-package-template.yml @@ -57,7 +57,7 @@ jobs: echo "This commit has already been processed for version update in $PROJECT_NAME. Skipping." else # Extract the version from the commit message - CUSTOM_VERSION=$(git show -s --format=%s $COMMIT_HASH | grep -oP '\(#update package version to \K([0-9]+\.[0-9]+\.[0-9]+)') + CUSTOM_VERSION=$(git show -s --format=%s $COMMIT_HASH | grep -oP '\(#update '"$PROJECT_NAME"' package version to \K([0-9]+\.[0-9]+\.[0-9]+)') if [[ -n "$CUSTOM_VERSION" ]]; then echo "Using custom version: $CUSTOM_VERSION" diff --git a/src/DfE.CoreLibs.BackgroundService/ServiceCollectionExtensions.cs b/src/DfE.CoreLibs.BackgroundService/ServiceCollectionExtensions.cs index c1e6359..7af6133 100644 --- a/src/DfE.CoreLibs.BackgroundService/ServiceCollectionExtensions.cs +++ b/src/DfE.CoreLibs.BackgroundService/ServiceCollectionExtensions.cs @@ -1,7 +1,6 @@ using DfE.CoreLibs.BackgroundService.Interfaces; using DfE.CoreLibs.BackgroundService.Services; - namespace Microsoft.Extensions.DependencyInjection { public static class ServiceCollectionExtensions @@ -14,4 +13,4 @@ public static IServiceCollection AddBackgroundService(this IServiceCollection se return services; } } -} +} \ No newline at end of file