Generate teams for PyBaMM #70
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
# A workflow to run the generate_teams.py script in the CI weekly and create a pull request | |
name: Generate teams for PyBaMM | |
on: | |
schedule: | |
# Run every Monday at 03:15 AM UTC | |
- cron: "15 3 * * 1" | |
workflow_dispatch: | |
jobs: | |
generate-teams: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout main branch of repository | |
uses: actions/checkout@v4 | |
with: | |
ref: main | |
submodules: recursive | |
- name: Setup Python 3.12 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- name: Generate teams page(s) | |
run: pipx run nox -s teams | |
# Will exit silently if there are no changes | |
- name: Create pull request | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
# Commit details | |
commit-message: "[create-pull-request] update teams HTML files" | |
# Pull request details | |
branch: "create-pull-request/generate-teams" | |
branch-suffix: timestamp | |
delete-branch: true | |
base: "main" | |
title: "Update teams weekly" | |
body: "This pull request was automatically created by the CI workflow `teams.yml`." | |
labels: "auto-generated" | |
reviewers: | | |
agriyakhetarpal | |
Saransh-cpp | |
valentinsulzer | |
rtimms | |
draft: false |