From 517ca8163f7c313bdeef565bdcb9b055ce05526c Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Mon, 15 Jun 2026 20:59:52 +0300 Subject: ci: fix preview release baseline after stable --- .github/workflows/preview.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 7ecdef01..17830de6 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -272,13 +272,18 @@ jobs: if [ -z "$previous" ]; then previous="$(git describe --tags --match 'v[0-9]*' --abbrev=0)" fi + range_base="$(python3 scripts/preview.py range-base \ + --previous "$previous" \ + --commit '${{ needs.preflight.outputs.commit }}')" echo "commit=$previous" >> "$GITHUB_OUTPUT" + echo "range_base=$range_base" >> "$GITHUB_OUTPUT" - name: Generate notes and checksums shell: bash run: | set -euo pipefail python3 scripts/preview.py notes \ + --previous '${{ steps.previous-preview.outputs.range_base }}' \ --commit '${{ needs.preflight.outputs.commit }}' \ --build-id '${{ needs.preflight.outputs.build_id }}' \ --base-version '${{ needs.preflight.outputs.base_version }}' \ @@ -349,10 +354,12 @@ jobs: PREVIEW_TAG='${{ needs.preflight.outputs.tag }}' PREVIEW_BUILD_ID='${{ needs.preflight.outputs.build_id }}' PREVIOUS_PREVIEW_COMMIT='${{ steps.previous-preview.outputs.commit }}' + PREVIEW_RANGE_BASE='${{ steps.previous-preview.outputs.range_base }}' - echo "Scanning preview commits in $PREVIOUS_PREVIEW_COMMIT..$PREVIEW_COMMIT for refs # mentions." + echo "Previous preview commit: $PREVIOUS_PREVIEW_COMMIT" + echo "Scanning preview commits in $PREVIEW_RANGE_BASE..$PREVIEW_COMMIT for refs # mentions." mapfile -t ISSUES < <( - git log --format='%s%n%b' "$PREVIOUS_PREVIEW_COMMIT..$PREVIEW_COMMIT" \ + git log --format='%s%n%b' "$PREVIEW_RANGE_BASE..$PREVIEW_COMMIT" \ | perl -ne 'print "$1\n" if /\brefs\s+#([0-9]+)\b/i' \ | sort -nu ) -- cgit v1.2.3