update of Fine-Tune Florence-2 on Object Detection Dataset notebook #207
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: 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 |