Skip to content

Update External Docs #91

Update External Docs

Update External Docs #91

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@v5
- name: Set up Node.js
uses: actions/setup-node@v6
- 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@v5
# see all the options at https://github.com/crowdin/github-action
- name: Crowdin PR
uses: crowdin/github-action@08713f00a50548bfe39b37e8f44afb53e7a802d4 # https://github.com/crowdin/github-action/releases/tag/v2.12.0
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 }}