-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1.21 KB
/
update-protocol.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
name: Update protocol
on: [repository_dispatch]
jobs:
Update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
token: ${{ secrets.GIT_TOKEN }}
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install Poetry
uses: abatilo/[email protected]
with:
poetry-version: "1.3.2"
- name: Install dependencies
run: poetry install
- name: Update ProtocolDefinitions
working-directory: ProtocolDefinitions
run: git fetch && git checkout ${{ github.event.client_payload.sha }}
- name: Generate UDP protocol
run: poetry run invoke generate-udp
- name: Generate TCP protocol
run: poetry run invoke generate-tcp
- name: Generate Protobuf protocol
run: poetry run invoke generate-proto
- name: Generate setup.py
run: poetry run invoke generate-setup-py
- name: Add & Commit
uses: EndBug/[email protected]
with:
add: "blueye ProtocolDefinitions setup.py"
message: "Update ProtocolDefinitions"
default_author: github_actions