Merge pull request #996 from devsapp/fix-deploy-doc #376
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: docs sync | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
sync-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: file_changes | |
uses: tj-actions/changed-files@v14.5 | |
id: docs-changed | |
with: | |
files: | | |
docs/* | |
- name: Run step only when files change. | |
if: steps.docs-changed.outputs.any_changed == 'true' | |
run: | | |
curl -H "X-Fc-Invocation-Type: Async" http://index.serverless-devs-docs.1767215449378635.cn-hongkong.fc.devsapp.net | |