Skip to content

Commit 601d05e

Browse files
authored
Change order of steps in create-translation-batch-pr.yml (github#23210)
The new order will use "reset known broken files" as a last step. That way we can better understand if the previous steps were enough to catch those errors. The least files are reset in that last step, the better. Also, the check for broken/mismatched liquid tags is performed after rendering and parsing check. That helps us to identify how useful the mismatch check is, if at all.
1 parent 5e5fe86 commit 601d05e

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

.github/workflows/create-translation-batch-pr.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -99,19 +99,6 @@ jobs:
9999

100100
- run: npm ci
101101

102-
- name: Reset files with broken liquid tags
103-
run: |
104-
node script/i18n/reset-files-with-broken-liquid-tags.js --language=${{ matrix.language_code }}
105-
git add translations/${{ matrix.language }} && git commit -m "run script/i18n/reset-files-with-broken-liquid-tags.js --language=${{ matrix.language_code }}" || echo "Nothing to commit"
106-
107-
# step 5 in docs-engineering/crowdin.md using script from docs-internal#22709
108-
- name: Reset known broken files
109-
run: |
110-
node script/i18n/reset-known-broken-translation-files.js
111-
git add translations/${{ matrix.language }} && git commit -m "run script/i18n/reset-known-broken-translation-files.js" || echo "Nothing to commit"
112-
env:
113-
GITHUB_TOKEN: ${{ secrets.DOCUBOT_REPO_PAT }}
114-
115102
# step 6 in docs-engineering/crowdin.md
116103
- name: Homogenize frontmatter
117104
run: |
@@ -127,15 +114,28 @@ jobs:
127114
# step 8a in docs-engineering/crowdin.md
128115
- name: Check parsing
129116
run: |
130-
node script/i18n/lint-translation-files.js --check parsing
117+
node script/i18n/lint-translation-files.js --check parsing | tee -a /tmp/batch.log | cat
131118
git add translations/${{ matrix.language }} && git commit -m "Run script/i18n/lint-translation-files.js --check parsing" || echo "Nothing to commit"
132119
133120
# step 8b in docs-engineering/crowdin.md
134121
- name: Check rendering
135122
run: |
136-
node script/i18n/lint-translation-files.js --check rendering
123+
node script/i18n/lint-translation-files.js --check rendering | tee -a /tmp/batch.log | cat
137124
git add translations/${{ matrix.language }} && git commit -m "Run script/i18n/lint-translation-files.js --check rendering" || echo "Nothing to commit"
138125
126+
- name: Reset files with broken liquid tags
127+
run: |
128+
node script/i18n/reset-files-with-broken-liquid-tags.js --language=${{ matrix.language_code }} | tee -a /tmp/batch.log | cat
129+
git add translations/${{ matrix.language }} && git commit -m "run script/i18n/reset-files-with-broken-liquid-tags.js --language=${{ matrix.language_code }}" || echo "Nothing to commit"
130+
131+
# step 5 in docs-engineering/crowdin.md using script from docs-internal#22709
132+
- name: Reset known broken files
133+
run: |
134+
node script/i18n/reset-known-broken-translation-files.js | tee -a /tmp/batch.log | cat
135+
git add translations/${{ matrix.language }} && git commit -m "run script/i18n/reset-known-broken-translation-files.js" || echo "Nothing to commit"
136+
env:
137+
GITHUB_TOKEN: ${{ secrets.DOCUBOT_REPO_PAT }}
138+
139139
- name: Check in CSV report
140140
run: |
141141
mkdir -p log

0 commit comments

Comments
 (0)