Process New Firmwares #13
This file contains hidden or 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: Process New Firmwares | |
| on: | |
| workflow_dispatch: # | |
| jobs: | |
| work: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Configure Git credentials | |
| run: | | |
| git config --global user.name "github-actions[bot]" | |
| git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
| git config --global credential.helper store | |
| echo "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com" > ~/.git-credentials | |
| - name: Bare Clone | |
| run: | | |
| curl -L "https://github.com/$GITHUB_REPOSITORY/raw/refs/heads/main/bare-clone.sh" | bash | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.12" | |
| - name: Cache pip | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/pip | |
| key: ${{ runner.os }}-pip-${{ hashFiles('openitools-ipcc/requirements.txt') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pip- | |
| - name: Install deps and run | |
| run: | | |
| cd openitools-ipcc | |
| pip install --upgrade pip | |
| pip install -r requirements.txt | |
| python src/main.py -g --min-firmware 10 --jobs 1 |