Skip to content

Commit

Permalink
provide updated i18n repo as task output
Browse files Browse the repository at this point in the history
[#157198111]
  • Loading branch information
tjvman committed Apr 30, 2018
1 parent f408b95 commit 667acab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ci/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ jobs:
file: outputs/all.json.zip
- put: cli-i18n
params:
repository: cli-i18n
repository: cli-i18n-updated
on_failure:
put: slack-alert
params:
Expand Down
9 changes: 7 additions & 2 deletions ci/tasks/generate-i18n-json.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ inputs:

outputs:
- name: updated-translation-files
- name: cli-i18n-updated

run:
path: bash
Expand All @@ -36,12 +37,16 @@ run:
mv *all.json updated-translation-files
cp -f updated-translation-files/en-us.all.json cli-i18n/resources/en-us.all.json
git clone cli-i18n cli-i18n-updated
pushd cli-i18n-updated
git checkout master
pushd cli-i18n
git config --global user.email "cf-cli-eng@pivotal.io"
git config --global user.name "cf-cli-eng"
cp -f updated-translation-files/en-us.all.json cli-i18n/resources/en-us.all.json
git add ./resources/en-us.all.json
git commit -m "Updating en-us translation file"
popd

0 comments on commit 667acab

Please sign in to comment.