File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -41,17 +41,29 @@ jobs:
4141 - name : Create a release if needed
4242 id : semantic
4343 run : |
44- semantic-release
44+ semantic-release --debug
45+ echo "::set-output name=new_release_version::$(semantic-release --dry-run | grep 'next release version is' | awk '{print $5}')"
46+ echo "::set-output name=new_release_published::true"
4547 env :
4648 CI : true
4749 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4850
51+ - name : Debug Output
52+ run : |
53+ echo "New Release Version: ${{ steps.semantic.outputs.new_release_version }}"
54+ echo "New Release Published: ${{ steps.semantic.outputs.new_release_published }}"
55+
4956 publish :
5057 needs : github_release
5158 runs-on : ubuntu-24.04
5259 if : needs.github_release.outputs.new_release_published == 'true'
5360 name : Publish
5461 steps :
62+ - name : Debug Condition
63+ run : |
64+ echo "new_release_published value: ${{ needs.github_release.outputs.new_release_published }}"
65+ echo "new_release_version value: ${{ needs.github_release.outputs.new_release_version }}"
66+
5567 - uses : actions/checkout@v4
5668 with :
5769 ref : main
You can’t perform that action at this time.
0 commit comments