feat: add procedure to build destination yamls automatically #4
Workflow file for this run
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: Backend Doc Change | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
check-doc-change: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Run sync-dest-doc.py in docs directory | |
run: | | |
cd docs | |
python sync-dest-doc.py | |
- name: Check for changes in destinations | |
run: | | |
git diff --exit-code destinations || ( | |
echo "Changes detected in destinations directory. Failing the workflow."; | |
git diff destinations; | |
exit 1; | |
) |