forked from feistjo/CAN
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 850 Bytes
/
dbc_to_csv.yml
File metadata and controls
36 lines (29 loc) · 850 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
name: DBC to CSV
on:
push:
paths:
- 'docs/full_bus.dbc'
jobs:
convert_dbc_to_csv:
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 CSV
run: |
python docs/dbc_to_csv.py docs/full_bus.dbc docs/full_bus.csv
- name: Commit and push CSV file
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add docs/full_bus.csv
git commit -m "Automatically generated CSV from DBC" || echo "No changes to the CSV file"
git push