Update manufacturer file #244
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: Update manufacturer file | |
| on: | |
| schedule: | |
| - cron: "0 */6 * * *" | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| update_manufacturer_file: | |
| name: Update manufacturer file | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout source code | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Setup Python | |
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | |
| with: | |
| python-version: "3.14.6" | |
| - name: Install Python packages | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r tools/requirements.txt | |
| - name: Make manufacturer file | |
| run: python tools/make_manuf.py | |
| - name: Check if there are any changes | |
| id: verify_diff | |
| run: | | |
| git diff --quiet . || echo "changed=true" >> $GITHUB_OUTPUT | |
| - name: Update manufacturer file | |
| if: steps.verify_diff.outputs.changed == 'true' | |
| run: | | |
| git config --global user.name 'github-actions[bot]' | |
| git config --global user.email 'github-actions[bot]@users.noreply.github.com' | |
| git add manuf.txt | |
| git commit -am "manuf: Update of `date +'%Y-%m-%d %H:%M:%S'`" | |
| git push |