Skip to content

Commit

Permalink
test 4
Browse files Browse the repository at this point in the history
  • Loading branch information
alternative-rvb committed Mar 14, 2024
1 parent edc388a commit bb35dbf
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,26 +26,13 @@ jobs:
run: |
echo "::set-output name=previous_tag::$(git describe --abbrev=0 --tags $(git rev-list --tags --skip=1 --max-count=1))"
- name: Generate Changelog Content Debug
- name: Generate Changelog Content
id: generate_changelog
run: |
echo "::group::Generating Changelog"
git log --pretty=format:"* %s (%cn)" ${{ steps.prev_tag.outputs.previous_tag }}..${{ github.ref }} > changelog.txt
cat changelog.txt
echo "::endgroup::"
echo "::set-output name=changelog_file::changelog.txt"
- name: Generate Changelog Test Debug
run: |
changelog_file="${{ steps.generate_changelog.outputs.changelog_file }}"
echo "Length of changelog file: $(wc -l < $changelog_file)"
echo "Changelog content from file:"
cat $changelog_file
- name: Display Changelog Content Debug
run: |
cat ${{ steps.generate_changelog.outputs.changelog_file }}
echo "::set-output name=changelog::$(cat changelog.txt)" # Capture entire changelog content
- name: Create Draft Release
uses: actions/create-release@v1
Expand All @@ -54,6 +41,5 @@ jobs:
with:
tag_name: ${{ github.ref }}
release_name: "Release Notes for ${{ github.ref }}"
body: |
$(cat ${{ steps.generate_changelog.outputs.changelog_file }})
body: ${{ steps.generate_changelog.outputs.changelog }} # Use captured changelog content
draft: true

0 comments on commit bb35dbf

Please sign in to comment.