From f09741cbde35e802988ba7eb587bcafbeb2e80ba Mon Sep 17 00:00:00 2001 From: Florian Dieminger Date: Mon, 18 Nov 2024 21:59:16 +0100 Subject: [PATCH] fix --- .github/workflows/test-build.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index d6ace64e42a3..14358c4d8c36 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -85,6 +85,16 @@ jobs: mv mdn/translated-content-de/files/de mdn/translated-content/files/ rm -rf mdn/translated-content-de + - name: Clean and commit de + if: ${{ ! vars.SKIP_BUILD || ! vars.SKIP_FUNCTION }} + working-directory: mdn/translated-content + run: | + cp de/_redirects.txt de/_redirects.txt.bak + sed -n -E '/^#.*|(.*\thttp.*)|(.*\t\/en-US|de\/.*)/I p' de/_redirects.txt.bak > de/_redirects.txt + rm de/_redirects.txt.bak + git add files/de + git -c user.name='MDN' -c user.email='mdn-dev@mozilla.com' commit -m 'de' + - uses: actions/checkout@v4 if: ${{ ! vars.SKIP_BUILD }} with: