Skip to content

Commit 2c87403

Browse files
committed
build: final
1 parent fe89286 commit 2c87403

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

.github/workflows/cl.yaml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,15 @@ jobs:
2626
with:
2727
config: ./cliff.toml
2828
args: --unreleased --bump
29-
# env:
30-
# OUTPUT: CHANGELOG.md
3129

32-
- name: Print the changelog
33-
run: cat "${{ steps.generate_unreleased_changelog.outputs.changelog }}"
30+
- name: Get unreleased changelog content
31+
id: get_unreleased_changelog
32+
run: |
33+
content=$(cat ${{ steps.generate_unreleased_changelog.outputs.changelog }})
34+
echo "::set-output name=out_unreleased_changelog::$content"
35+
36+
# - name: Print the changelog
37+
# run: cat "${{ steps.generate_unreleased_changelog.outputs.changelog }}"
3438

3539
- name: Update CHANGELOG.md
3640
id: update_changelog
@@ -41,23 +45,23 @@ jobs:
4145
env:
4246
OUTPUT: CHANGELOG.md
4347

44-
# - name: Commit and push changes
45-
# uses: stefanzweifel/git-auto-commit-action@v4
46-
# with:
47-
# commit_message: "chore(changelog): update changelog [skip ci]"
48+
- name: Commit and push changes
49+
uses: stefanzweifel/git-auto-commit-action@v4
50+
with:
51+
commit_message: "chore(changelog): update changelog [skip ci]"
4852

49-
- name: Print New Tag
50-
id: print_new_tag
51-
run: |
52-
echo "New Tag: ${{ steps.generate_unreleased_changelog.outputs.version }}"
53+
# - name: Print New Tag
54+
# id: print_new_tag
55+
# run: |
56+
# echo "New Tag: ${{ steps.generate_unreleased_changelog.outputs.version }}"
5357

5458
- name: release
5559
uses: actions/create-release@v1
5660
with:
5761
release_name: Release ${{ steps.generate_unreleased_changelog.outputs.version }}
5862
tag_name: ${{ steps.generate_unreleased_changelog.outputs.version }}
5963
commitish: ${{ github.sha }}
60-
body: cat ${{ steps.generate_unreleased_changelog.outputs.changelog }}
64+
body: ${{ steps.get_unreleased_changelog.outputs.out_unreleased_changelog }}
6165
env:
6266
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6367

0 commit comments

Comments
 (0)