fix(self-host): check installer health locally (#1757) #16
This file contains hidden or 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 to compass-docs | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'docs/**' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| sync: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/checkout@v6 | |
| with: | |
| repository: SwitchbackTech/compass-docs | |
| token: ${{ secrets.COMPASS_DOCS_TOKEN }} | |
| path: compass-docs | |
| - name: Sync docs | |
| run: rsync -av --delete docs/ compass-docs/docs/ | |
| - name: Commit and push if changed | |
| working-directory: compass-docs | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git add -A | |
| git diff --staged --quiet || git commit -m "sync: update docs from compass" | |
| git push |