Skip to content

Merge pull request #315 from roboflow/yolov11-model-upload #242

Merge pull request #315 from roboflow/yolov11-model-upload

Merge pull request #315 from roboflow/yolov11-model-upload #242

name: rebuild readme.md notebooks table on pr merge to main
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Rebuild notebooks table in project README.md
run: python automation/autogenerate_notebooks_table.py
- name: Check for modified files
id: git-check
run: echo ::set-output name=modified::$(if [ -n "$(git status --porcelain)" ]; then echo "true"; else echo "false"; fi)
- name: Update changes in GitHub repository
if: steps.git-check.outputs.modified == 'true'
run: |
git config --global user.name 'SkalskiP'
git config --global user.email '[email protected]'
git commit -am "🤖 hello friend, the notebooks table has been rebuilt"
git push