feat: added git folder sync config

This commit is contained in:
Ivan Shvets 2021-06-23 12:59:47 +03:00
parent 274b04b432
commit a69f0fb009
2 changed files with 22 additions and 0 deletions

6
.github/sync.yml vendored Normal file
View File

@ -0,0 +1,6 @@
group:
- files:
- source: docs/
dest: docs/redoc
repos: |
Redocly/docs

16
.github/workflows/sync.yml vendored Normal file
View File

@ -0,0 +1,16 @@
name: Sync Files
on:
push:
branches:
- master
workflow_dispatch:
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@master
- name: Run GitHub File Sync
uses: Redocly/repo-file-sync-action
with:
GH_PAT: ${{ secrets.GH_PAT }}