Skip to content

Update Build Matrix #48

Update Build Matrix

Update Build Matrix #48

Workflow file for this run

---
name: Update Build Matrix
on:
workflow_dispatch:
push:
paths:
- Dockerfile
- variants.json
schedule:
- cron: "0 8 * * 0"
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GH_TOKEN }}
- name: Generate matrix
run: |
python3 -m venv .venv
.venv/bin/python3 -m pip install requests
.venv/bin/python3 ./.github/workflows/scripts/generate_matrix.py -i variants.json -o build_matrix.json
- name: Commit and push matrix
run: |
git config --global user.email "[email protected]"
git config --global user.name "matrix-bot"
git commit -am "Updated build_matrix.json" && git push || exit 0