more docs of project structure #6
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: Sync Docs | |
on: | |
push: | |
branches: | |
- 'master' | |
paths: | |
- 'docs/**' | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
# TODO add or-docs-or-non-docs validation here? | |
sync-docs: | |
name: Sync Docs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Add Docs Source | |
run: git remote add wiki https://github.com/vorant94/subs-savvy.wiki.git | |
- name: Fetch Added Docs | |
run: git fetch --all | |
- name: Push Docs Source | |
run: git subtree push --prefix docs wiki master | |