File tree Expand file tree Collapse file tree 1 file changed +3
-22
lines changed
Expand file tree Collapse file tree 1 file changed +3
-22
lines changed Original file line number Diff line number Diff line change 1- name : Update Locale and Website
1+ name : Update Website
22
33on :
44 workflow_dispatch :
55 push :
66 branches :
77 - develop
8- - un-challenge
8+ - main
99
1010jobs :
1111 update-documentation :
12- name : Update Locale and Website
12+ name : Update Website
1313 runs-on : ubuntu-latest
1414
1515 strategy :
9090 git config user.name "github-actions[bot]"
9191 git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
9292
93- - name : Update locale
94- if : github.ref == 'refs/heads/develop'
95- run : |
96- # List all the files that needs to be committed in build/docs/locale_changes.txt
97- awk '/^Update|^Create/{print $2}' build/docs/locale_changes.txt > tmp && mv tmp build/docs/locale_changes.txt # .po files
98- cat build/docs/locale_changes.txt | perl -pe 's/(.*)en\/LC_MESSAGES(.*)/$1pot$2t/' >> build/docs/locale_changes.txt # .pot files
99- cat build/docs/locale_changes.txt
100-
101- # Remove obsolete entries #~ from .po files
102- tools/transifex/remove_obsolete_entries.sh
103-
104- # Add the files, commit and push
105- for line in `cat build/docs/locale_changes.txt`; do git add "$line"; done
106- git diff --staged --quiet || git commit -m "Update locale: commit ${{ env.GIT_HASH }}"
107- git fetch origin develop
108- git restore . # Remove the unstaged changes before rebasing
109- git rebase origin/develop
110- git push origin develop
111-
11293 - name : Update Website
11394 run : |
11495 if [[ "${{ env.BRANCH }}" == "develop" ]]; then
You can’t perform that action at this time.
0 commit comments