-
-
Notifications
You must be signed in to change notification settings - Fork 24
50 lines (40 loc) · 1.07 KB
/
hex2bin.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
41
42
43
44
45
46
47
48
49
name: Convert HEX to BIN
permissions:
contents: write
on:
push:
branches:
- zb_fws
paths-ignore:
- "ti/manifest.json"
workflow_dispatch:
jobs:
convert:
runs-on: ubuntu-latest # Run on the latest Ubuntu version
steps:
- name: Checkout repo
uses: actions/checkout@v3 # Use the latest version
with:
ref: zb_fws
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x' # Use the latest Python 3 version
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests
- name: Install srecord
run: |
sudo apt-get update
sudo apt-get install -y srecord
- name: Download and prepare files
run: |
python3 .github/scripts/process_and_convert.py
- name: Commit and push changes
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Action"
git add .
git commit -m "Add converted BIN files"
git push