Add multi-environment MLOps lab for healthcare readmission prediction… #4
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: Update Labs Table | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "**/lab.json" | |
| jobs: | |
| update-readme: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Run update script | |
| run: python scripts/update_readme.py | |
| - name: Check for changes | |
| id: changes | |
| run: | | |
| git diff --quiet README.md docs/labs-config.json || echo "changed=true" >> $GITHUB_OUTPUT | |
| - name: Commit and push | |
| if: steps.changes.outputs.changed == 'true' | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git add README.md docs/labs-config.json | |
| git commit -m "chore: update labs table and pages config" | |
| git push |