We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2aac8d commit cc2754cCopy full SHA for cc2754c
.github/workflows/release-trigger.yml
@@ -110,10 +110,18 @@ jobs:
110
111
- name: Commit version bump
112
run: |
113
- git add pyproject.toml CHANGELOG.md
114
- git commit -m "chore: bump version to ${{ steps.version.outputs.version }}"
115
- echo "Changes committed"
+ if [ -f "CHANGELOG.md" ]; then
+ git add pyproject.toml CHANGELOG.md
+ else
116
+ git add pyproject.toml
117
+ fi
118
119
+ if git diff --cached --quiet; then
120
+ echo "No changes to commit"
121
122
+ git commit -m "chore: bump version to ${{ steps.version.outputs.version }}"
123
+ echo "Changes committed"
124
125
- name: Create and push tag
126
127
git tag -a "${{ steps.version.outputs.tag }}" -m "Release ${{ steps.version.outputs.tag }}"
0 commit comments