From 1f8f2210f7adcf14de39cae7d9ade36ffe9f9e1b Mon Sep 17 00:00:00 2001 From: Steel Wagstaff Date: Fri, 4 Mar 2022 11:44:11 -0800 Subject: [PATCH] Update update-translations.yml --- .github/workflows/update-translations.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/update-translations.yml b/.github/workflows/update-translations.yml index 357e78d..7c4cd21 100644 --- a/.github/workflows/update-translations.yml +++ b/.github/workflows/update-translations.yml @@ -7,6 +7,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + with: + token: ${{ secrets.PAT_FOR_GITHUB_ACTIONS }} - name: Install Transifex Client run: sudo pip install transifex-client - name: Pull translations from Transifex @@ -17,13 +19,8 @@ jobs: run: sudo apt-get install -y gettext - name: Generate MO files run: for file in languages/*.po ; do msgfmt $file -o `echo $file | sed 's/\(.*\.\)po/\1mo/'` ; done - # Remove the next four lines and uncomment the last six lines once the process has been confirmed to work as desired. - - uses: actions/upload-artifact@v2 + - name: Commit updated translation files + uses: stefanzweifel/git-auto-commit-action@v4.13.1 with: - name: pressbooks-aldine-languages - path: languages/ - # - name: Commit updated translation files - # uses: stefanzweifel/git-auto-commit-action@v4.1.1 - # with: - # commit_message: 'chore(l10n): update translations' - # file_pattern: *.mo *.po + commit_message: 'chore(l10n): update translations' + file_pattern: '*.mo *.po'