We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 760d75b commit 628f620Copy full SHA for 628f620
.github/workflows/release-proposal-dispatch.yml
@@ -236,6 +236,20 @@ jobs:
236
RANGE="$TAG..$ORIGINAL_HEAD"
237
echo "Using $RANGE as range"
238
239
+ echo "Tag $TAG hash:"
240
+ git rev-parse "$TAG"
241
+
242
+ if git merge-base --is-ancestor "$TAG" "$ORIGINAL_HEAD" 2>/dev/null; then
243
+ echo " Tag is ancestor of HEAD, using $RANGE"
244
+ else
245
+ MERGE_BASE=$(git merge-base "$TAG" "$ORIGINAL_HEAD" 2>/dev/null || echo "")
246
+ if [ -n "$MERGE_BASE" ]; then
247
+ echo " Tag is NOT ancestor of HEAD, using merge-base: $MERGE_BASE"
248
249
+ echo " WARNING: Could not find merge-base, using $RANGE"
250
+ fi
251
252
253
echo "Is the tag $TAG in the branch:"
254
git branch --contains "$TAG" || {
255
echo "Error: Tag $TAG is not in the branch" >&2
0 commit comments