Skip to content

Commit

Permalink
re-enable translations
Browse files Browse the repository at this point in the history
  • Loading branch information
piyalbasu committed Jun 27, 2023
1 parent 4123edc commit d0e4817
Showing 1 changed file with 34 additions and 34 deletions.
68 changes: 34 additions & 34 deletions .github/workflows/buildTranslations.yml
Original file line number Diff line number Diff line change
@@ -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 "[email protected]"
# 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 "[email protected]"
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 }}

0 comments on commit d0e4817

Please sign in to comment.