From e44ca7b0b82d83f020b1ae5dc70ddbfd77ad4528 Mon Sep 17 00:00:00 2001 From: David Boike Date: Wed, 4 Feb 2026 12:10:28 -0600 Subject: [PATCH] Use specific SHA for base/head comparison and dump shas out to console --- .github/workflows/auto-release.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index 7c699c3..fdc6935 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -26,7 +26,10 @@ jobs: # Script checks the diff of src/Particular.PlatformSample/Particular.PlatformSample.csproj in the just-merged PR, and invokes a release of the next minor if ServiceControl/ServicePulse changes # Get the diff of the component csproj file between the base and head of the just-merged PR - $diff = $(git diff ${{ github.event.pull_request.base.sha }} HEAD src/Particular.PlatformSample/Particular.PlatformSample.csproj ) + $baseSha = "${{ github.event.pull_request.base.sha }}" + $headSha = "${{ github.event.pull_request.head.sha }}" + echo "Comparing diff of PR's base sha $baseSha with head sha $headSha to determine if ServiceControl/ServicePulse package was updated" + $diff = $(git diff $baseSha $headSha src/Particular.PlatformSample/Particular.PlatformSample.csproj ) # Grep search for lines that show an addition contianing ServiceControl/ServicePulse $updates = $diff | grep -E '^\+\s+