File tree Expand file tree Collapse file tree 2 files changed +14
-14
lines changed
trigger-other-job/.github/workflows Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -24,17 +24,18 @@ jobs:
2424 run : |
2525 cz bump --yes --annotated-tag
2626 git push --follow-tags
27- current_version="$(cz version -p)" # ATTENTION: You may have to add the v* at the beginning of the version
28- echo "current_version=$current_version" >> $GITHUB_OUTPUT
27+ new_version="$(cz version -p)" # ATTENTION: You may have to add the v* at the beginning of the version
28+ new_version_tag="$(cz version -p --tag)"
29+ echo "new_version=$new_version" >> $GITHUB_OUTPUT
30+ echo "new_version_tag=$new_version_tag" >> $GITHUB_OUTPUT
2931 - name : Build changelog for Release
3032 env :
31- CURRENT_VERSION : ${{ steps.bump-version.outputs.current_version }}
33+ NEW_VERSION : ${{ steps.bump-version.outputs.new_version }}
3234 run : |
33- cz changelog --dry-run "${CURRENT_VERSION }" > .changelog.md
35+ cz changelog --dry-run "${NEW_VERSION }" > .changelog.md
3436 - name : Release
35- uses : softprops/action-gh-release@v2
36- with :
37- body_path : " .changelog.md"
38- tag_name : ${{ steps.bump-version.outputs.current_version }}
3937 env :
40- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
38+ GH_TOKEN : ${{ github.token }}
39+ NEW_VERSION_TAG : ${{ steps.bump-version.outputs.new_version_tag }}
40+ run : |
41+ gh release create "${NEW_VERSION_TAG}" --notes-file .changelog.md
Original file line number Diff line number Diff line change @@ -37,12 +37,11 @@ jobs:
3737 run : |
3838 cz changelog --dry-run "${NEW_VERSION}" > .changelog.md
3939 - name : Release
40- uses : softprops/action-gh-release@v2
41- with :
42- body_path : " .changelog.md"
43- tag_name : ${{ steps.bump-version.outputs.new_version }}
4440 env :
45- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
41+ GH_TOKEN : ${{ github.token }}
42+ NEW_VERSION_TAG : ${{ steps.bump-version.outputs.new_version_tag }}
43+ run : |
44+ gh release create "${NEW_VERSION_TAG}" --notes-file .changelog.md
4645 - name : trigger other workflow
4746 env :
4847 GH_TOKEN : ${{ github.token }}
You can’t perform that action at this time.
0 commit comments