improve private-link docs (#53) #16
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: control-plane-docs | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- charts/control-plane/README.md | |
- charts/control-plane/docs-sync.yaml | |
- .github/workflows/control-plane-docs-sync.yaml | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup repo | |
uses: actions/checkout@v3 | |
- name: Add metadata to sync file | |
working-directory: charts/control-plane | |
run: | | |
f="README-sync.md" | |
echo '---' > "$f" | |
echo 'title: Helm Chart - Synadia Control Plane' >> "$f" | |
echo 'description: Synadia Control Plane Helm Chart deployment guide' >> "$f" | |
echo '---' >> "$f" | |
echo '' >> "$f" | |
echo '# Helm Chart' >> "$f" | |
tail -n +2 "README.md" >> "$f" | |
- name: Run GitHub File Sync | |
# use a commit hash here since this requires a PAT | |
# this hash maps to https://github.com/BetaHuhn/repo-file-sync-action/releases/tag/v1.21.0 | |
uses: BetaHuhn/repo-file-sync-action@3023dac7ce66c18b119e2012348437eadeaea116 | |
with: | |
GH_PAT: ${{ secrets.CONTROL_PLANE_DOCS_SYNC_PAT }} | |
IS_FINE_GRAINED: true | |
CONFIG_PATH: charts/control-plane/docs-sync.yaml | |
GIT_USERNAME: caleblloyd | |
GIT_EMAIL: [email protected] |