We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79999b4 commit f822fdaCopy full SHA for f822fda
.github/workflows/release.yml
@@ -41,8 +41,11 @@ jobs:
41
- name: Create a release if needed
42
id: semantic
43
run: |
44
- dry_run_output=$(semantic-release --dry-run | grep -i 'there are no relevant changes, so no new version is released')
45
- if [ $? -eq 0 ]; then
+ dry_run_output=$(semantic-release --dry-run 2>&1 || true)
+ echo "Dry run output: $dry_run_output"
46
+
47
+ # Check if there are no changes
48
+ if $(echo "$dry_run_output" | grep -q "no new version is released"); then
49
echo "No new release needed"
50
echo "new_release_published=false" >> $GITHUB_OUTPUT
51
exit 0
0 commit comments