Skip to content

Commit

Permalink
fix: final changelog wf
Browse files Browse the repository at this point in the history
  • Loading branch information
dfm88 committed Mar 9, 2024
1 parent bfe479d commit 57672fa
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/cl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,10 @@ jobs:
config: ./cliff.toml
args: --unreleased --bump

- name: Get unreleased changelog content
id: get_unreleased_changelog
run: |
content=$(cat ${{ steps.generate_unreleased_changelog.outputs.changelog }})
echo "::set-output name=out_unreleased_changelog::$content"
# - name: Print the changelog
# run: cat "${{ steps.generate_unreleased_changelog.outputs.changelog }}"
# - name: Print the changelog
# run: echo "${{ steps.generate_unreleased_changelog.outputs.content}}"

- name: Update CHANGELOG.md
id: update_changelog
Expand All @@ -50,18 +46,18 @@ jobs:
with:
commit_message: "chore(changelog): update changelog [skip ci]"

# - name: Print New Tag
# id: print_new_tag
# run: |
# echo "New Tag: ${{ steps.generate_unreleased_changelog.outputs.version }}"
# # - name: Print New Tag
# # id: print_new_tag
# # run: |
# # echo "New Tag: ${{ steps.generate_unreleased_changelog.outputs.version }}"

- name: release
uses: actions/create-release@v1
with:
release_name: Release ${{ steps.generate_unreleased_changelog.outputs.version }}
tag_name: ${{ steps.generate_unreleased_changelog.outputs.version }}
commitish: ${{ github.sha }}
body: ${{ steps.get_unreleased_changelog.outputs.out_unreleased_changelog }}
body: ${{ steps.generate_unreleased_changelog.outputs.content }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down

0 comments on commit 57672fa

Please sign in to comment.