Skip to content

Commit

Permalink
build: final
Browse files Browse the repository at this point in the history
  • Loading branch information
dfm88 committed Mar 9, 2024
1 parent fe89286 commit 2c87403
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions .github/workflows/cl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,15 @@ jobs:
with:
config: ./cliff.toml
args: --unreleased --bump
# env:
# OUTPUT: CHANGELOG.md

- name: Print the changelog
run: cat "${{ steps.generate_unreleased_changelog.outputs.changelog }}"
- 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: Update CHANGELOG.md
id: update_changelog
Expand All @@ -41,23 +45,23 @@ jobs:
env:
OUTPUT: CHANGELOG.md

# - name: Commit and push changes
# uses: stefanzweifel/git-auto-commit-action@v4
# with:
# commit_message: "chore(changelog): update changelog [skip ci]"
- name: Commit and push changes
uses: stefanzweifel/git-auto-commit-action@v4
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: cat ${{ steps.generate_unreleased_changelog.outputs.changelog }}
body: ${{ steps.get_unreleased_changelog.outputs.out_unreleased_changelog }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down

0 comments on commit 2c87403

Please sign in to comment.