Skip to content

Commit

Permalink
fix(sync-translated-content): run in test-de yari branch
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed Oct 31, 2024
1 parent 66f2858 commit 8f68961
Showing 1 changed file with 23 additions and 10 deletions.
33 changes: 23 additions & 10 deletions .github/workflows/sync-translated-content.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,33 @@ jobs:
- de

steps:
- uses: actions/checkout@v4
- name: Checkout (yari)
uses: actions/checkout@v4
with:
repository: mdn/yari
path: mdn/yari
ref: test-de

- uses: actions/checkout@v4
- name: Checkout (content)
uses: actions/checkout@v4
with:
repository: mdn/content
path: mdn/content

- name: Setup Node.js environment
- name: Checkout (translated-content-de)
uses: actions/checkout@v4
with:
path: mdn/translated-content-de

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
node-version-file: "mdn/yari/.nvmrc"
cache: "yarn"
cache-dependency-path: mdn/content/yarn.lock
cache-dependency-path: mdn/yari/yarn.lock

- name: Install all yarn packages
working-directory: ${{ github.workspace }}/mdn/content
- name: Install (yari)
working-directory: ${{ github.workspace }}/mdn/yari
run: yarn --frozen-lockfile
env:
# https://github.com/microsoft/vscode-ripgrep#github-api-limit-note
Expand All @@ -48,9 +59,11 @@ jobs:
- name: Sync translated content
env:
CONTENT_ROOT: ${{ github.workspace }}/mdn/content/files
CONTENT_TRANSLATED_ROOT: ${{ github.workspace }}/files
working-directory: ${{ github.workspace }}/mdn/content
run: yarn content sync-translated-content ${{ matrix.lang }}
CONTENT_TRANSLATED_ROOT: ${{ github.workspace }}/mdn/translated-content-de/files
working-directory: ${{ github.workspace }}/mdn/yari
run: |
yarn build:prepare
yarn tool sync-translated-content ${{ matrix.lang }}
- name: Gather related upstream commits
env:
Expand Down

0 comments on commit 8f68961

Please sign in to comment.