diff --git a/.github/workflows/continuous-delivery.yml b/.github/workflows/continuous-delivery.yml index d015159..c863909 100644 --- a/.github/workflows/continuous-delivery.yml +++ b/.github/workflows/continuous-delivery.yml @@ -39,14 +39,28 @@ jobs: - name: Check for Release Requirement id: release-check run: | - productionFilesChangedCount=$(git diff --name-only HEAD^ HEAD | grep -E 'src/|Installer/' | wc -l) - echo "$productionFilesChangedCount production source code files have changed" - productionFilesChanged=$((productionFilesChangedCount > 0)) + if releaseBaseline=$(git describe --tags --match 'v[0-9]*.[0-9]*.[0-9]*' --exclude '*-*' --exclude '*+*' --abbrev=0 HEAD); then + echo "Comparing against stable release: $releaseBaseline" + else + # Without a release tag, compare against an empty tree for the initial release. + releaseBaseline=$(git hash-object -t tree --stdin > $GITHUB_OUTPUT