Skip to content

Commit 383ec0b

Browse files
authored
Remove translations directory before Crowdin Sync (github#22582)
* Remove all translations before Crowdin sync - See https://github.com/github/docs-engineering/issues/1114 * To be reverted Temporarily change the branch name name in Crowdin sync * Remove translations/*/data before Crowdin sync * Fix actions check * Revert "To be reverted" This reverts commit 7bc38fa44a223eb1878d791107b5b5ce6cb50463. * Pin crowdin/github-action
1 parent 1c196cd commit 383ec0b

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

‎.github/allowed-actions.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default [
1212
'actions/upload-artifact@27121b0bdffd731efa15d66772be8dc71245d074', // v2.2.4
1313
'alex-page/github-project-automation-plus@bb266ff4dde9242060e2d5418e120a133586d488', // v0.8.1
1414
'andymckay/labeler@e6c4322d0397f3240f0e7e30a33b5c5df2d39e90', // v1.0.4
15-
'crowdin/github-action@d7f217268068f1244883a993379d62d816f84f25', // v1.4.0
15+
'crowdin/github-action@d0622816ed4f4744db27d04374b2cef6867f7bed', // v1.4.1
1616
'cschleiden/actions-linter@caffd707beda4fc6083926a3dff48444bc7c24aa', // uses github-actions-parser v0.23.0
1717
'dawidd6/action-delete-branch@47743101a121ad657031e6704086271ca81b1911', // v3.0.2
1818
'dawidd6/action-download-artifact@af92a8455a59214b7b932932f2662fdefbd78126', // v2.15.0

‎.github/workflows/crowdin.yml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,13 @@ jobs:
2727
- name: Remove unwanted git hooks
2828
run: rm .git/hooks/post-checkout
2929

30+
- name: Remove all translations
31+
run: |
32+
git rm -rf --quiet translations/*/content
33+
git rm -rf --quiet translations/*/data
34+
3035
- name: Sync
31-
uses: crowdin/github-action@d7f217268068f1244883a993379d62d816f84f25
36+
uses: crowdin/github-action@d0622816ed4f4744db27d04374b2cef6867f7bed
3237
with:
3338
# This option enables the transfer of existing translations in this project to Crowdin.
3439
# We explicitly set this to `false` since we only want to use the downloaded translations managed by Crowdin.

0 commit comments

Comments
 (0)