abapgit-agent 1.1.1-2 → 1.1.1-3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -36,26 +36,9 @@ jobs:
|
|
|
36
36
|
- name: Generate release notes
|
|
37
37
|
id: release_notes
|
|
38
38
|
run: |
|
|
39
|
-
# Get current tag
|
|
40
39
|
CURRENT_TAG="${GITHUB_REF#refs/tags/}"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
# Fetch all tags
|
|
44
|
-
git fetch --tags
|
|
45
|
-
|
|
46
|
-
# Get previous tag (the tag before current)
|
|
47
|
-
PREV_TAG=$(git tag --sort=-v:refname | grep '^v' | head -2 | tail -1)
|
|
48
|
-
|
|
49
|
-
echo "Previous tag: $PREV_TAG"
|
|
50
|
-
|
|
51
|
-
if [ -z "$PREV_TAG" ]; then
|
|
52
|
-
# First release - list all commits
|
|
53
|
-
CHANGES=$(git log --pretty=format:"- %s (%h)" -10)
|
|
54
|
-
else
|
|
55
|
-
# Get changes since last tag
|
|
56
|
-
CHANGES=$(git log --pretty=format:"- %s (%h)" ${PREV_TAG}..${CURRENT_TAG})
|
|
57
|
-
fi
|
|
58
|
-
|
|
40
|
+
# List all commits since the repo began (or use a fixed starting point)
|
|
41
|
+
CHANGES=$(git log --pretty=format:"- %s (%h)" -20)
|
|
59
42
|
echo "CHANGES=$CHANGES" >> $GITHUB_OUTPUT
|
|
60
43
|
|
|
61
44
|
- name: Create GitHub Release
|