forked from feistjo/CAN
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (30 loc) · 851 Bytes
/
dbc_to_h.yml
File metadata and controls
37 lines (30 loc) · 851 Bytes
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
name: DBC to H
on:
push:
paths:
- 'docs/full_bus.dbc'
jobs:
convert_dbc_to_h:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install cantools
- name: Convert DBC to H
run: |
python docs/dbc_to_h.py docs/full_bus.dbc docs/full_bus.h
- name: Commit and push H file
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git pull
git add docs/full_bus.h
git commit -m "Automatically generated .h from DBC" || echo "No changes to the .h file"
git push