@@ -28,34 +28,10 @@ jobs:
2828 args : --unreleased --bump
2929 env :
3030 OUTPUT : CHANGELOG.md
31-
31+
3232 - name : Print the changelog
3333 run : cat "${{ steps.generate_unreleased_changelog.outputs.changelog }}"
3434
35- - name : Format changelog for Slack
36- id : format_for_slack
37- run : |
38- output=$(python scripts/changelog_slack.py ${{ steps.generate_unreleased_changelog.outputs.changelog }})
39- echo "::set-output name=formatted_json::$output"
40- echo "Formatted JSON output for debugging: $output"
41- echo "Changelog for debugging: ${{ steps.generate_unreleased_changelog.outputs.changelog }}"
42- env :
43- UNRELEASED_CHANGELOG : ${{ steps.generate_unreleased_changelog.outputs.changelog }}
44-
45- # - name: Debug Python
46- # id: debug_python
47- # run: |
48- # echo "Debug2 Python output for debugging: ${{ steps.format_for_slack.outputs.formatted_json }}"
49-
50-
51- - name : Send custom JSON data to Slack workflow
52- 53- with :
54- channel-id : " C06N79SSDD5"
55- payload : ${{ steps.format_for_slack.outputs.formatted_json }}
56- env :
57- SLACK_BOT_TOKEN : ${{ secrets.SLACK_BOT_TOKEN }}
58-
5935 - name : Update CHANGELOG.md
6036 id : update_changelog
6137 uses : orhun/git-cliff-action@v3
@@ -65,17 +41,40 @@ jobs:
6541 env :
6642 OUTPUT : CHANGELOG.md
6743
68- - name : Commit and push changes
69- uses : stefanzweifel/git-auto-commit-action@v4
70- with :
71- commit_message : " chore(changelog): update changelog [skip ci]"
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+
49+ - name : Print New Tag
50+ id : print_new_tag
51+ run : |
52+ echo "New Tag: v${{ steps.generate_unreleased_changelog.outputs.version }}"
7253
7354 - name : release
7455 uses : actions/create-release@v1
7556 with :
76- release_name : Release ${{ steps.generate_unreleased_changelog.outputs.version }}
77- tag_name : ${{ steps.generate_unreleased_changelog.outputs.version }}
57+ release_name : Release v ${{ steps.generate_unreleased_changelog.outputs.version }}
58+ tag_name : v ${{ steps.generate_unreleased_changelog.outputs.version }}
7859 commitish : ${{ github.sha }}
7960 body : ${{ steps.generate_unreleased_changelog.outputs.changelog }}
8061 env :
8162 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
63+
64+ - name : Format changelog for Slack
65+ id : format_for_slack
66+ run : |
67+ output=$(python scripts/changelog_slack.py ${{ steps.generate_unreleased_changelog.outputs.changelog }})
68+ echo "::set-output name=formatted_json::$output"
69+ echo "Formatted JSON output for debugging: $output"
70+ echo "Changelog for debugging: ${{ steps.generate_unreleased_changelog.outputs.changelog }}"
71+ env :
72+ UNRELEASED_CHANGELOG : ${{ steps.generate_unreleased_changelog.outputs.changelog }}
73+
74+ - name : Send custom JSON data to Slack workflow
75+ 76+ with :
77+ channel-id : " C06N79SSDD5"
78+ payload : ${{ steps.format_for_slack.outputs.formatted_json }}
79+ env :
80+ SLACK_BOT_TOKEN : ${{ secrets.SLACK_BOT_TOKEN }}
0 commit comments