Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

Fix check for modified yml file in renovate-changelog workflow (#3869)

Jan Høydahl3cb1f8326e6c
diff --git a/.github/workflows/renovate-changelog.yml b/.github/workflows/renovate-changelog.yml
index 5b6934b1762..f12f83d8dde 100644
--- a/.github/workflows/renovate-changelog.yml
+++ b/.github/workflows/renovate-changelog.yml
@@ -45,8 +45,8 @@ jobs:
- name: Commit and push changelog
run: |
- # Check if there are any changes to commit
- if git diff --quiet; then
+ # Check if there are any new (untracked) or modified files in changelog/unreleased/
+ if [ -z "$(git status --porcelain changelog/unreleased/)" ]; then
echo "No changelog changes to commit"
exit 0
fi