From d0e481742ea3046b1990c9eed2069e1c45f70e2c Mon Sep 17 00:00:00 2001 From: Piyal Basu Date: Tue, 27 Jun 2023 11:51:01 -0400 Subject: [PATCH] re-enable translations --- .github/workflows/buildTranslations.yml | 68 ++++++++++++------------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/.github/workflows/buildTranslations.yml b/.github/workflows/buildTranslations.yml index 270b62c98..12de5648e 100644 --- a/.github/workflows/buildTranslations.yml +++ b/.github/workflows/buildTranslations.yml @@ -1,36 +1,36 @@ -# name: Build translations +name: Build translations -# on: -# pull_request: -# paths: -# - "extension/**/*" +on: + pull_request: + paths: + - "extension/**/*" -# jobs: -# translate: -# runs-on: ubuntu-latest -# steps: -# - uses: actions/checkout@v2 -# with: -# persist-credentials: false -# fetch-depth: 0 -# - uses: actions/setup-node@v1 -# with: -# node-version: "16.14.0" -# - name: Run translation job -# run: | -# yarn && yarn build:freighter-api && yarn build:extension:translations -# - name: Verify diff -# id: verify_diff -# run: | -# git diff --quiet || echo "::set-output name=new_translations_exist::true" -# - name: Commit files -# if: steps.verify_diff.outputs.new_translations_exist == 'true' -# run: | -# git config --local user.email "action@github.com" -# git config --local user.name "GitHub Action" -# git commit -m "Add translations" -a -# - name: Push changes -# uses: ad-m/github-push-action@master -# with: -# github_token: ${{ secrets.GITHUB_TOKEN }} -# branch: ${{ github.head_ref }} +jobs: + translate: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + persist-credentials: false + fetch-depth: 0 + - uses: actions/setup-node@v1 + with: + node-version: "16.14.0" + - name: Run translation job + run: | + yarn && yarn build:freighter-api && yarn build:extension:translations + - name: Verify diff + id: verify_diff + run: | + git diff --quiet || echo "::set-output name=new_translations_exist::true" + - name: Commit files + if: steps.verify_diff.outputs.new_translations_exist == 'true' + run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + git commit -m "Add translations" -a + - name: Push changes + uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + branch: ${{ github.head_ref }}