From: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Date: Mon, 8 Dec 2025 21:16:29 +0000 (+0000) Subject: Fix workflow to ignore date-only changes in intl templates X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5802f7bc2cfc5d8a65e89cd6e5fe998d480b79fc;p=thirdparty%2Ftvheadend.git Fix workflow to ignore date-only changes in intl templates Co-authored-by: Flole998 <9951871+Flole998@users.noreply.github.com> --- diff --git a/.github/workflows/update-intl-templates.yml b/.github/workflows/update-intl-templates.yml index 0addf8433..c0f56d831 100644 --- a/.github/workflows/update-intl-templates.yml +++ b/.github/workflows/update-intl-templates.yml @@ -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