mirror of
https://github.com/expressjs/expressjs.com.git
synced 2026-02-23 20:32:45 +00:00
Signed-off-by: Sebastian Beltran <bjohansebas@gmail.com> Co-authored-by: shubham oulkar <91728992+ShubhamOulkar@users.noreply.github.com>
66 lines
2.4 KiB
YAML
66 lines
2.4 KiB
YAML
name: Update External Docs
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '0 8 * * 1'
|
|
|
|
permissions:
|
|
pull-requests: write
|
|
contents: write
|
|
|
|
jobs:
|
|
update-docs:
|
|
runs-on: ubuntu-latest
|
|
if: github.repository_owner == 'expressjs'
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v4
|
|
|
|
- name: Run scripts
|
|
working-directory: .github/scripts
|
|
run: |
|
|
bash ./get-contributing.sh
|
|
bash ./get-readmes.sh
|
|
node ./get-express-version.mjs
|
|
|
|
- name: Create Pull Request
|
|
uses: gr2m/create-or-update-pull-request-action@v1
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
commit-message: 'docs: update external docs'
|
|
title: 'docs: update external docs'
|
|
body: >
|
|
This auto-generated PR updates external documentation to the expressjs.com repository.
|
|
|
|
cc: @expressjs/docs-wg
|
|
labels: docs
|
|
branch: external-docs
|
|
|
|
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@590c05e09a29f392b203faf4d6aa8e0cd32c7835 # https://github.com/crowdin/github-action/releases/tag/v2.9.1
|
|
with:
|
|
upload_sources: false
|
|
upload_translations: false
|
|
download_translations: true
|
|
localization_branch_name: crowdin/translations
|
|
create_pull_request: true
|
|
pull_request_title: 'i18n: 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 }}
|