1
0
mirror of synced 2025-12-25 02:17:36 -05:00

Merge pull request #32274 from github/repo-sync

Repo sync
This commit is contained in:
docs-bot
2024-03-28 14:42:03 -04:00
committed by GitHub
2 changed files with 18 additions and 1 deletions

View File

@@ -34,6 +34,12 @@ jobs:
steps:
- name: Check out repo's default branch
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
# Picking this number is a "best guess". If we make it too large,
# the checkout will take potentially unnecessariily long.
# This reduces the chance that tj-actions/changed-files has to
# fetch deeper history. But if it needs to, it will.
fetch-depth: 10
- uses: ./.github/actions/node-npm-setup
@@ -100,6 +106,7 @@ jobs:
# workaround for the time being.
# First, gather the URLs that were relevant
- name: Get changed content/data files
if: ${{ github.event_name == 'pull_request' }}
id: changed-files
uses: tj-actions/changed-files@77af4bed286740ef1a6387dc4e4e4dec39f96054 # v43.0.0
with:
@@ -109,6 +116,7 @@ jobs:
safe_output: false
files: |
content/**
- name: Generate PR comment
if: ${{ github.event_name == 'pull_request' && steps.changed-files.outputs.any_changed == 'true' }}
env:

View File

@@ -27,7 +27,8 @@ export function correctTranslatedContentStrings(content, englishContent, context
content = content.replaceAll('{% данных variables', '{% data variables')
content = content.replaceAll('{% данными variables', '{% data variables')
content = content.replaceAll('{% данных организации variables', '{% data variables')
content = content.replaceAll('{% данным variables', '{% data variables')
content = content.replaceAll('{% данным variables.', '{% data variables.')
content = content.replaceAll('{% данные variables.', '{% data variables.')
content = content.replaceAll('{% данных reusables', '{% data reusables')
content = content.replaceAll('{% данными reusables', '{% data reusables')
content = content.replaceAll('{% variables.', '{% data variables.')
@@ -36,6 +37,14 @@ export function correctTranslatedContentStrings(content, englishContent, context
content = content.replaceAll('{% ifversion fpt или ghec %}', '{% ifversion fpt or ghec %}')
content = content.replaceAll('{% endif _%}', '{% endif %}')
content = content.replaceAll('{% конечным %}', '{% endif %}')
content = content.replaceAll('{% переменных данных.', '{% data variables.')
content = content.replaceAll('{% повторно используемых данных.', '{% data reusables.')
content = content.replaceAll('{% примечание %}', '{% note %}')
content = content.replaceAll('{% конечных головщиков %}', '{% endrowheaders %}')
content = content.replaceAll('{% данных для повторного использования.', '{% data reusables.')
content = content.replaceAll('{% еще %}', '{% else %}')
content = content.replaceAll('{% необработанные %}', '{% raw %}')
content = content.replaceAll('{% подсказки %}', '{% tip %}')
// For the rather custom Russian translation of
// the content/get-started/learning-about-github/github-glossary.md page