echo "changes=false" >> $GITHUB_OUTPUT
echo "No changes detected in internationalisation templates"
else
- echo "changes=true" >> $GITHUB_OUTPUT
- echo "Changes detected in internationalisation templates"
- echo "Files that will be updated:"
- git diff --cached --name-only
+ # Check if changes are only in POT-Creation-Date lines
+ # Filter out lines that only change the date
+ SUBSTANTIVE_CHANGES=$(git diff --cached | grep -E '^[-+]' | grep -v '^---' | grep -v '^+++' | grep -v 'POT-Creation-Date:' || true)
+
+ if [ -z "$SUBSTANTIVE_CHANGES" ]; then
+ echo "changes=false" >> $GITHUB_OUTPUT
+ echo "Only POT-Creation-Date changed, ignoring..."
+ else
+ echo "changes=true" >> $GITHUB_OUTPUT
+ echo "Changes detected in internationalisation templates"
+ echo "Files that will be updated:"
+ git diff --cached --name-only
+ fi
fi
- name: Create Pull Request