name: Update Generated Content
on:
  push:
    branches:
      - master
jobs:
  update-content:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-python@v4
        with:
          python-version: 3.9
      - run: make content
      - name: Create Pull Request
        id: cpr
        uses: peter-evans/create-pull-request@v4
        with:
          commit-message: "[automated] Update generated content"
          title: "[automated] Update generated content"
          delete-branch: true
          token: ${{ secrets.GITHUB_TOKEN }}
