From 16f79268b23a1be04a007cabddc0a4e8360b10b4 Mon Sep 17 00:00:00 2001 From: Jed Fox Date: Tue, 3 Jan 2023 08:50:17 -0500 Subject: [PATCH] Remove unnecessary safety checks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GitHub doesn’t run workflows for commits pushed from inside of Actions --- .github/workflows/localization.yml | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/.github/workflows/localization.yml b/.github/workflows/localization.yml index a3e70846b..8af1ad58a 100644 --- a/.github/workflows/localization.yml +++ b/.github/workflows/localization.yml @@ -23,26 +23,7 @@ jobs: run: exec ./.github/scripts/setup.sh - name: Update localization files run: exec ./update_localization.sh - - name: Check for changes - id: changes - run: | - git status --porcelain - if git diff --quiet; then - echo "No changes to commit. Skipping push." - echo "changes=false" >> $GITHUB_OUTPUT - else - echo "changes=true" >> $GITHUB_OUTPUT - fi - - name: Avoid infinite loops - if: steps.changes.outputs.changes == 'true' - run: | - if git log -1 --pretty=%B | grep -q "Auto-update generated files"; then - echo "This commit was generated by the localization workflow. Exiting." - echo "::error::Localization files changed again after auto-update, failing now to avoid infinite loop." - exit 1 - fi - name: Commit and push changes - if: steps.changes.outputs.changes == 'true' uses: stefanzweifel/git-auto-commit-action@v4 with: commit_message: "Auto-update generated files"