Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Agrim/Pr 2903 minified react error (#7846) #500

Agrim/Pr 2903 minified react error (#7846)

Agrim/Pr 2903 minified react error (#7846) #500

name: Sync Translators Branch
permissions:
actions: write
checks: write
contents: write
deployments: write
pull-requests: write
statuses: write
on:
push:
branches:
- 'master*'
jobs:
sync-translation:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
- name: Setup Node
uses: actions/[email protected]
with:
node-version: '18.x'
- name: Sync Master to Translators branch 🔀
run: |
branch_name="master_translations"
echo "Setting up Git identity"
git config --global user.name "DerivFE"
git config --global user.email "[email protected]"
echo "Checking out new branch [$branch_name]"
git checkout -b "$branch_name"
# Force push to this branch in case a previous run created it.
git push --set-upstream origin "$branch_name" -f
sudo apt install gh
gh auth login --with-token <<< ${{ github.token }}
gh pr close "$branch_name" || true
gh pr create --base "translators" --title "[translators] Update translators branch with master 📚" --head "binary-com:$branch_name" --body "This is an automated PR designed to keep the translators' branch up to date, ensuring that all newly added strings are available for translation."