generated from Open-Science-Community-Saudi-Arabia/Template
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #325 from Open-Science-Community-Saudi-Arabia/fron…
…tend-ui Frontend UI
- Loading branch information
Showing
5 changed files
with
4,957 additions
and
545 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,38 @@ | ||
name: Automerge Crowdin | ||
name: Extract and compile translation | ||
on: | ||
pull_request: | ||
branches: [frontend-ui] | ||
pull_request_target: | ||
types: | ||
- closed | ||
branches: | ||
- "frontend-ui" | ||
|
||
jobs: | ||
automerge: | ||
if_merged: | ||
if: github.event.pull_request.head.ref == 'l10n_frontend-ui' && github.event.pull_request.merged == true | ||
name: Enter client directory | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ./client | ||
steps: | ||
- id: automerge | ||
name: automerge | ||
uses: "pascalgn/[email protected]" | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.REPO_TOKEN }}" | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Update source code | ||
run: | | ||
npm run extract | ||
npm run compile | ||
- name: Commit report | ||
run: | | ||
git config --global user.name 'Your Name' | ||
git config --global user.email '[email protected]' | ||
git add -A | ||
git commit -am "Translation compiled and extracted" | ||
git push |
Oops, something went wrong.