Skip to content

Commit cc2754c

Browse files
mnriemCopilot
andauthored
Update .github/workflows/release-trigger.yml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent d2aac8d commit cc2754c

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/release-trigger.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,18 @@ jobs:
110110
111111
- name: Commit version bump
112112
run: |
113-
git add pyproject.toml CHANGELOG.md
114-
git commit -m "chore: bump version to ${{ steps.version.outputs.version }}"
115-
echo "Changes committed"
113+
if [ -f "CHANGELOG.md" ]; then
114+
git add pyproject.toml CHANGELOG.md
115+
else
116+
git add pyproject.toml
117+
fi
116118
119+
if git diff --cached --quiet; then
120+
echo "No changes to commit"
121+
else
122+
git commit -m "chore: bump version to ${{ steps.version.outputs.version }}"
123+
echo "Changes committed"
124+
fi
117125
- name: Create and push tag
118126
run: |
119127
git tag -a "${{ steps.version.outputs.tag }}" -m "Release ${{ steps.version.outputs.tag }}"

0 commit comments

Comments
 (0)