]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Fix workflow to ignore date-only changes in intl templates
authorcopilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Mon, 8 Dec 2025 21:16:29 +0000 (21:16 +0000)
committerFlole <Flole998@users.noreply.github.com>
Mon, 15 Dec 2025 07:34:16 +0000 (08:34 +0100)
Co-authored-by: Flole998 <9951871+Flole998@users.noreply.github.com>
.github/workflows/update-intl-templates.yml

index 0addf84338e8df95dbfbd80f1c655c51234ee61c..c0f56d8319a77ea48b56b51f6a0e93e8f4426aec 100644 (file)
@@ -51,10 +51,19 @@ jobs:
           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