fix Python3 script, 3 #50
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Convert HEX to BIN | |
permissions: | |
contents: write | |
on: | |
push: | |
branches: | |
- zb_fws | |
paths-ignore: | |
- "ti/manifest.json" | |
- "README.md" | |
workflow_dispatch: | |
jobs: | |
convert: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
ref: zb_fws | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- 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 | |