aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-06-15 20:59:52 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-06-15 20:59:52 +0300
commit517ca8163f7c313bdeef565bdcb9b055ce05526c (patch)
tree4aa68b06c0b7529e67dba36d11d041ea162d4c31 /.github/workflows
parent41d1c14e0784cf63dc4cddda21c7e5fd99813b24 (diff)
ci: fix preview release baseline after stable
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/preview.yml11
1 files changed, 9 insertions, 2 deletions
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 #<issue> mentions."
+ echo "Previous preview commit: $PREVIOUS_PREVIEW_COMMIT"
+ echo "Scanning preview commits in $PREVIEW_RANGE_BASE..$PREVIEW_COMMIT for refs #<issue> 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
)