From 19cf0a9e80f5ab2788cbb3e62d9488545e42728c Mon Sep 17 00:00:00 2001 From: Kevin Song <4605384+chipbuster@users.noreply.github.com> Date: Fri, 21 Jan 2022 10:26:13 -0600 Subject: [PATCH] ci: Block changes to crowdin-generated files (#3427) * ci: Add workflow to block crowdin changes * Add a change which should not block the PR (will be reverted later) * Repair broken workflows * Add a change which should stop the PR * Revert "Add a change which should not block the PR (will be reverted later)" This reverts commit eafb5eaed1c2ec4909282990d51b7eb4d7a91fdc. * Revert "Add a change which should stop the PR" This reverts commit bfe6e7a39d5559dd6f58fd8cff854ed53948fb40. --- .github/workflows/format-workflow.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/format-workflow.yml b/.github/workflows/format-workflow.yml index 08336e12..420813e7 100644 --- a/.github/workflows/format-workflow.yml +++ b/.github/workflows/format-workflow.yml @@ -14,4 +14,16 @@ jobs: - name: Setup | Checkout uses: actions/checkout@v2.4.0 - name: Docs | Format - uses: dprint/check@v2.0 \ No newline at end of file + uses: dprint/check@v2.0 + + # If this is not a Crowdin PR, block changes to translated documentation + block-crowdin: + name: Block Translated Changes + runs-on: ubuntu-latest + steps: + - name: Prevent File Change + uses: xalvarez/prevent-file-change-action@v1.2.0 + if: ${{ env.GITHUB_HEAD_REF != 'i18n_master' }} + with: + githubToken: ${{ secrets.GITHUB_TOKEN }} + pattern: docs/[a-z][a-z][a-z]?-[A-Z][A-Z]?/.*