Skip to content

Commit 2264a48

Browse files
committed
ci: Add debug output to release workflow for better visibility
Signed-off-by: Eden Reich <eden.reich@gmail.com>
1 parent 7616218 commit 2264a48

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)