Merge pull request #8239 from OpenMined/rasswanth/switch-cd-to-self-h… #92
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: Post Merge Tasks | |
on: | |
workflow_call: | |
push: | |
branches: | |
- dev | |
- main | |
jobs: | |
post-merge-cleanup-notebooks: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.SYFT_BOT_COMMIT_TOKEN }} | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install pip packages | |
run: | | |
python -m pip install --upgrade --user pip tox | |
- name: Check and Bump Protocol Version | |
run: | | |
tox -e syft.protocol.check | |
- name: Commit changes to bump protocol and remove notebooks | |
uses: EndBug/add-and-commit@v9 | |
with: | |
author_name: ${{ secrets.OM_BOT_NAME }} | |
author_email: ${{ secrets.OM_BOT_EMAIL }} | |
message: "bump protocol and remove notebooks" | |
remove: "-r notebooks/Experimental/ --ignore-unmatch" | |
add: "['packages/syft/src/syft/protocol/protocol_version.json']" | |
commit: "-a" |