Skip to content

Commit 77d1192

Browse files
VIA-180 AS Fix create release step to fetch all commits
1 parent 93aa3f3 commit 77d1192

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/cicd-2-publish.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ jobs:
6363
echo "TAG=${TAG}"
6464
- name: "Checkout code"
6565
uses: actions/checkout@v4
66+
with:
67+
fetch-depth: 0
6668
- name: "Get commit history"
6769
id: commits
6870
run: |
@@ -75,15 +77,15 @@ jobs:
7577
echo "Listing commits between $PREVIOUS_TAG and $TAG."
7678
COMMIT_RANGE=$(git log --pretty=format:"- %s (%h)" "${PREVIOUS_TAG}..${TAG}")
7779
fi
78-
echo "commits=$COMMIT_RANGE" >> "$GITHUB_OUTPUT"
80+
echo "$COMMIT_RANGE" > commit_history.txt
7981
- name: "Create release"
8082
uses: actions/create-release@v1
8183
env:
8284
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8385
with:
8486
tag_name: ${{ github.ref_name }}
8587
release_name: Release ${{ github.ref_name }}
86-
body: ${{ steps.commits.outputs.commits }}
88+
body_path: commit_history.txt
8789
draft: false
8890
prerelease: false
8991
- name: "Get short SHA"

0 commit comments

Comments
 (0)