mirror of
https://github.com/expressjs/expressjs.com.git
synced 2026-02-22 03:51:33 +00:00
Revert "ci: separates the upload of content to Crowdin from the download of content" (#1865)
Reverts expressjs/expressjs.com#1864
This commit is contained in:
@@ -1,14 +1,11 @@
|
||||
name: Crowdin Upload
|
||||
name: Crowdin Action
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ gh-pages ]
|
||||
workflow_dispatch:
|
||||
|
||||
# Cancel in progress workflows
|
||||
# in the scenario where we already had a run going for that branch/tag but then triggered a new run
|
||||
concurrency:
|
||||
group: "${{ github.workflow }} ✨ ${{ github.head_ref || github.ref }}"
|
||||
cancel-in-progress: true
|
||||
permissions: write-all
|
||||
|
||||
jobs:
|
||||
synchronize-with-crowdin:
|
||||
@@ -23,7 +20,13 @@ jobs:
|
||||
with:
|
||||
upload_sources: true
|
||||
upload_translations: false
|
||||
download_translations: false
|
||||
download_translations: true
|
||||
localization_branch_name: l10n
|
||||
create_pull_request: true
|
||||
pull_request_title: 'New Crowdin Translations'
|
||||
pull_request_body: 'New Crowdin translations by [Crowdin GH Action](https://github.com/crowdin/github-action)'
|
||||
pull_request_base_branch_name: 'gh-pages'
|
||||
base_url: 'https://express.api.crowdin.com'
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
|
||||
26
.github/workflows/update-external-docs.yml
vendored
26
.github/workflows/update-external-docs.yml
vendored
@@ -36,29 +36,3 @@ jobs:
|
||||
labels: doc
|
||||
team_reviewers: expressjs/docs-captains
|
||||
branch: external-docs-${{ github.sha }}
|
||||
|
||||
synchronize-with-crowdin:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository_owner == 'expressjs'
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
# see all the options at https://github.com/crowdin/github-action
|
||||
- name: Crowdin PR
|
||||
uses: crowdin/github-action@v2
|
||||
with:
|
||||
# do not upload anything - this is a one-way operation download
|
||||
upload_sources: false
|
||||
upload_translations: false
|
||||
# the rest of this controls how the PR comes in with new translations
|
||||
download_translations: true
|
||||
localization_branch_name: crowdin/translations
|
||||
create_pull_request: true
|
||||
pull_request_title: 'New Crowdin Translations'
|
||||
pull_request_body: >
|
||||
New Crowdin translations from the [express.js crowdin project](https://express.crowdin.com/u/projects/1). cc: @expressjs/docs-wg
|
||||
pull_request_base_branch_name: 'gh-pages'
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
|
||||
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
|
||||
@@ -8,4 +8,3 @@ files:
|
||||
preserve_hierarchy: true
|
||||
project_id_env: CROWDIN_PROJECT_ID
|
||||
api_token_env: CROWDIN_PERSONAL_TOKEN
|
||||
base_url: "https://express.api.crowdin.com"
|
||||
|
||||
Reference in New Issue
Block a user