-
-
Notifications
You must be signed in to change notification settings - Fork 2k
40 lines (33 loc) · 1.04 KB
/
post-merge-tasks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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/"
add: "['packages/syft/src/syft/protocol/protocol_version.json']"
commit: "-a"