File tree 1 file changed +11
-0
lines changed 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -56,18 +56,29 @@ jobs:
56
56
owner : " tuist"
57
57
repo : " XcodeGraph"
58
58
configuration : " .github/changelog-configuration.json"
59
+ - name : Check if there are categorized PRs
60
+ id : check_prs
61
+ run : |
62
+ if [ "${{ steps.changelog.outputs.categorized_prs }}" = "0" ]; then
63
+ echo "skip_next_steps=true" >> $GITHUB_OUTPUT
64
+ else
65
+ echo "skip_next_steps=false" >> $GITHUB_OUTPUT
66
+ fi
59
67
- name : Update Changelog
60
68
uses : stefanzweifel/changelog-updater-action@v1
69
+ if : steps.check_prs.outputs.skip_next_steps != 'true'
61
70
with :
62
71
latest-version : ${{ steps.set_version.outputs.version }}
63
72
release-notes : ${{ steps.changelog.outputs.changelog }}
64
73
path-to-changelog : CHANGELOG.md
65
74
- uses : stefanzweifel/git-auto-commit-action@v5
75
+ if : steps.check_prs.outputs.skip_next_steps != 'true'
66
76
with :
67
77
commit_message : " Version ${{ steps.set_version.outputs.version }}"
68
78
tagging_message : ${{ steps.set_version.outputs.version }}
69
79
commit_options : ' --allow-empty'
70
80
- name : Create GitHub Release on the tuist/XcodeGraph repository
81
+ if : steps.check_prs.outputs.skip_next_steps != 'true'
71
82
uses : softprops/action-gh-release@v1
72
83
with :
73
84
draft : false
You can’t perform that action at this time.
0 commit comments