Skip to content

Commit 2aeaed5

Browse files
committed
Only updating website on action
1 parent 263dcc2 commit 2aeaed5

File tree

1 file changed

+3
-22
lines changed

1 file changed

+3
-22
lines changed
Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
name: Update Locale and Website
1+
name: Update Website
22

33
on:
44
workflow_dispatch:
55
push:
66
branches:
77
- develop
8-
- un-challenge
8+
- main
99

1010
jobs:
1111
update-documentation:
12-
name: Update Locale and Website
12+
name: Update Website
1313
runs-on: ubuntu-latest
1414

1515
strategy:
@@ -90,25 +90,6 @@ jobs:
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

0 commit comments

Comments
 (0)