forked from Bahmni/standard-config
-
Notifications
You must be signed in to change notification settings - Fork 1
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 #4 from IntelliSOFT-Consulting/disableAutamatedDeploy
disable automated deployment
- Loading branch information
Showing
2 changed files
with
107 additions
and
107 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 |
---|---|---|
@@ -1,46 +1,46 @@ | ||
name: Pull Translations from Transifex | ||
# name: Pull Translations from Transifex | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 1 * *' | ||
workflow_dispatch: | ||
# on: | ||
# schedule: | ||
# - cron: '0 0 1 * *' | ||
# workflow_dispatch: | ||
|
||
jobs: | ||
pull-translations: | ||
name: Pull Translations from Transifex | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
# jobs: | ||
# pull-translations: | ||
# name: Pull Translations from Transifex | ||
# runs-on: ubuntu-latest | ||
# permissions: | ||
# contents: write | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
# steps: | ||
# - name: Checkout code | ||
# uses: actions/checkout@v3 | ||
|
||
- name: Pull Translations from Transifex | ||
run: | | ||
curl -o transifex.sh https://raw.githubusercontent.com/Bahmni/bahmni-infra-utils/main/transifex.sh | ||
chmod +x transifex.sh | ||
./transifex.sh pull | ||
rm transifex.sh | ||
env: | ||
TX_TOKEN: ${{ secrets.TX_TOKEN }} | ||
# - name: Pull Translations from Transifex | ||
# run: | | ||
# curl -o transifex.sh https://raw.githubusercontent.com/Bahmni/bahmni-infra-utils/main/transifex.sh | ||
# chmod +x transifex.sh | ||
# ./transifex.sh pull | ||
# rm transifex.sh | ||
# env: | ||
# TX_TOKEN: ${{ secrets.TX_TOKEN }} | ||
|
||
- name: Commit and push changes | ||
id: auto-commit-action | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: "[Bahmni Infra] | Add. Update Translation Resources" | ||
branch: ${{ github.ref }} | ||
file_pattern: 'openmrs/i18n/**/*.json' | ||
repository: . | ||
commit_user_name: Bahmni Infra | ||
commit_user_email: [email protected] | ||
commit_author: bahmni-infra <[email protected]> | ||
# - name: Commit and push changes | ||
# id: auto-commit-action | ||
# uses: stefanzweifel/git-auto-commit-action@v4 | ||
# with: | ||
# commit_message: "[Bahmni Infra] | Add. Update Translation Resources" | ||
# branch: ${{ github.ref }} | ||
# file_pattern: 'openmrs/i18n/**/*.json' | ||
# repository: . | ||
# commit_user_name: Bahmni Infra | ||
# commit_user_email: [email protected] | ||
# commit_author: bahmni-infra <[email protected]> | ||
|
||
- name: Check for changes | ||
run: | | ||
if [[ steps.auto-commit-action.outputs.changes_detected == 'true' ]]; then | ||
echo "Changes Detected. Translation Resources Updated." | ||
else | ||
echo "No Changes Detected. Project Already Up-To-Date." | ||
fi | ||
# - name: Check for changes | ||
# run: | | ||
# if [[ steps.auto-commit-action.outputs.changes_detected == 'true' ]]; then | ||
# echo "Changes Detected. Translation Resources Updated." | ||
# else | ||
# echo "No Changes Detected. Project Already Up-To-Date." | ||
# fi |