Update cli-rs.md #450
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Upload to Crowdin on PR merge | |
# only trigger on pull request closed events | |
on: | |
pull_request: | |
types: [ closed ] | |
workflow_dispatch: | |
jobs: | |
merge_job: | |
# this job will only run if the PR has been merged | |
if: github.event.pull_request.merged == true | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- name: Upload Crowdin docs | |
run: | | |
echo PR #${{ github.event.number }} has been merged | |
cd website && npm install | |
npm run crowdin:sync | |
env: | |
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} |