Update Build Matrix #48
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: 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 |