-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/icrc-jofrancisco/openmrs-es…
…m-core into offline/offline-ready
- Loading branch information
Showing
289 changed files
with
3,689 additions
and
2,021 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
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 |
---|---|---|
|
@@ -22,9 +22,9 @@ jobs: | |
actions: read | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@v4 | ||
with: | ||
registry-url: "https://registry.npmjs.org" | ||
node-version: "18" | ||
|
@@ -55,15 +55,15 @@ jobs: | |
pre_release: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
if: ${{ (github.event.head_commit == null || | ||
!startsWith(github.event.head_commit.message, '(chore) Release v')) && | ||
|
||
if: ${{ (github.event.head_commit == null || | ||
!startsWith(github.event.head_commit.message, '(chore) Release v')) && | ||
(github.event_name == 'push' || github.event_name == 'workflow_dispatch') }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@v4 | ||
with: | ||
registry-url: "https://registry.npmjs.org" | ||
node-version: "18" | ||
|
@@ -91,7 +91,7 @@ jobs: | |
|
||
- name: Build | ||
run: yarn turbo run build --color --concurrency=5 | ||
|
||
- run: git config user.email "[email protected]" && git config user.name "OpenMRS CI" | ||
- run: git add . && git commit -m "Prerelease version" --no-verify | ||
|
||
|
@@ -101,7 +101,7 @@ jobs: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | ||
|
||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: packages | ||
path: | | ||
|
@@ -114,9 +114,9 @@ jobs: | |
if: ${{ github.event_name == 'release' }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@v4 | ||
with: | ||
registry-url: "https://registry.npmjs.org" | ||
node-version: "18" | ||
|
@@ -145,8 +145,8 @@ jobs: | |
|
||
needs: pre_release | ||
|
||
if: ${{ (github.event.head_commit == null || | ||
!startsWith(github.event.head_commit.message, '(release)')) && | ||
if: ${{ (github.event.head_commit == null || | ||
!startsWith(github.event.head_commit.message, '(release)')) && | ||
(github.event_name == 'push' || github.event_name == 'workflow_dispatch') }} | ||
|
||
steps: | ||
|
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
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
# every day at 8 PM UTC | ||
- cron: "0 20 * * *" | ||
|
||
name: "Scheduled Transifex Update" | ||
|
||
jobs: | ||
pull-translations-from-transifex: | ||
name: pull-translations-from-transifex | ||
|
||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Push source file using transifex client | ||
uses: transifex/cli-action@v2 | ||
with: | ||
token: ${{ secrets.TRANSIFEX_TOKEN }} | ||
args: pull | ||
- name: Create PR if necessary | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
commit-message: "(chore) Update translations from Transifex" | ||
title: "(chore) Update translations from Transifex" | ||
body: "Automated updates of translations pulled from Transifex" | ||
branch: "chore/update-transifex" | ||
author: "OpenMRS Bot <[email protected]>" | ||
token: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [main] | ||
|
||
name: "Update Transifex on Push" | ||
|
||
jobs: | ||
push-translations-to-transifex: | ||
name: push-translations-to-transifex | ||
|
||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Push source file using transifex client | ||
uses: transifex/cli-action@v2 | ||
with: | ||
token: ${{ secrets.TRANSIFEX_TOKEN }} |
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,27 +1,35 @@ | ||
[main] | ||
host = https://www.transifex.com | ||
|
||
[o:openmrs:p:openmrs-esm-core:r:esm-implementer-tools-app] | ||
file_filter = packages/apps/esm-implementer-tools-app/translations/<lang>.json | ||
source_file = packages/apps/esm-implementer-tools-app/translations/en.json | ||
source_lang = en | ||
type = KEYVALUEJSON | ||
replace_edited_strings = false | ||
keep_translations = false | ||
|
||
[openmrs-esm-core.esm-implementer-tools-app] | ||
file_filter = packages/apps/esm-implementer-tools-app/translations/<lang>.json | ||
source_file = packages/apps/esm-implementer-tools-app/translations/en.json | ||
source_lang = en | ||
type = KEYVALUEJSON | ||
[o:openmrs:p:openmrs-esm-core:r:esm-login-app] | ||
file_filter = packages/apps/esm-login-app/translations/<lang>.json | ||
source_file = packages/apps/esm-login-app/translations/en.json | ||
source_lang = en | ||
type = KEYVALUEJSON | ||
replace_edited_strings = false | ||
keep_translations = false | ||
|
||
[openmrs-esm-core.esm-login-app] | ||
file_filter = packages/apps/esm-login-app/translations/<lang>.json | ||
source_file = packages/apps/esm-login-app/translations/en.json | ||
source_lang = en | ||
type = KEYVALUEJSON | ||
[o:openmrs:p:openmrs-esm-core:r:esm-offline-tools-app] | ||
file_filter = packages/apps/esm-offline-tools-app/translations/<lang>.json | ||
source_file = packages/apps/esm-offline-tools-app/translations/en.json | ||
source_lang = en | ||
type = KEYVALUEJSON | ||
replace_edited_strings = false | ||
keep_translations = false | ||
|
||
[openmrs-esm-core.esm-offline-tools-app] | ||
file_filter = packages/apps/esm-offline-tools-app/translations/<lang>.json | ||
source_file = packages/apps/esm-offline-tools-app/translations/en.json | ||
source_lang = en | ||
type = KEYVALUEJSON | ||
[o:openmrs:p:openmrs-esm-core:r:esm-primary-navigation-app] | ||
file_filter = packages/apps/esm-primary-navigation-app/translations/<lang>.json | ||
source_file = packages/apps/esm-primary-navigation-app/translations/en.json | ||
source_lang = en | ||
type = KEYVALUEJSON | ||
replace_edited_strings = false | ||
keep_translations = false | ||
|
||
[openmrs-esm-core.esm-primary-navigation-app] | ||
file_filter = packages/apps/esm-primary-navigation-app/translations/<lang>.json | ||
source_file = packages/apps/esm-primary-navigation-app/translations/en.json | ||
source_lang = en | ||
type = KEYVALUEJSON |
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
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
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
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
Oops, something went wrong.